Browse Source

init

master
Stephen McQuay 1 year ago
commit
bc0fb17786
Signed by: Stephen McQuay (smcquay) <stephen@mcquay.me> GPG Key ID: 4E4B72F479BA3CE5
6 changed files with 89 additions and 0 deletions
  1. +20
    -0
      LICENSE
  2. +3
    -0
      README.md
  3. +21
    -0
      hw/deploy.yaml
  4. +11
    -0
      hw/svc.yaml
  5. +23
    -0
      hwc/deploy.yaml
  6. +11
    -0
      hwc/svc.yaml

+ 20
- 0
LICENSE View File

@@ -0,0 +1,20 @@
MIT License
Copyright (c) 2018 Stephen McQuay

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

+ 3
- 0
README.md View File

@@ -0,0 +1,3 @@
# hw/hwc k8s configs

config files for k8s poc.

+ 21
- 0
hw/deploy.yaml View File

@@ -0,0 +1,21 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: hw
labels:
app: hw
spec:
replicas: 10
selector:
matchLabels:
app: hw
template:
metadata:
labels:
app: hw
spec:
containers:
- image: smcquay/hw:v0.0.5
name: hw
ports:
- containerPort: 8080

+ 11
- 0
hw/svc.yaml View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: hw
spec:
type: LoadBalancer
selector:
app: hw
ports:
- protocol: TCP
port: 8080

+ 23
- 0
hwc/deploy.yaml View File

@@ -0,0 +1,23 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: hwc
labels:
app: hwc
spec:
replicas: 1
selector:
matchLabels:
app: hwc
template:
metadata:
labels:
app: hwc
spec:
containers:
- image: smcquay/hwc:v0.0.1
name: hwc
ports:
- containerPort: 8081
command: ["/bin/hwc"]
args: ["hw.default.svc.cluster.local"]

+ 11
- 0
hwc/svc.yaml View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: hwc
spec:
type: LoadBalancer
selector:
app: hwc
ports:
- protocol: TCP
port: 8081

Loading…
Cancel
Save