commit bc0fb17786cfe53658146966caabdcde4f5240e4 Author: Stephen McQuay (smcquay) Date: Thu Feb 1 13:31:52 2018 -0800 init diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5996d0b --- /dev/null +++ b/LICENSE @@ -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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..13a95e9 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# hw/hwc k8s configs + +config files for k8s poc. diff --git a/hw/deploy.yaml b/hw/deploy.yaml new file mode 100644 index 0000000..aafd47a --- /dev/null +++ b/hw/deploy.yaml @@ -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 diff --git a/hw/svc.yaml b/hw/svc.yaml new file mode 100644 index 0000000..68d434a --- /dev/null +++ b/hw/svc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: hw +spec: + type: LoadBalancer + selector: + app: hw + ports: + - protocol: TCP + port: 8080 diff --git a/hwc/deploy.yaml b/hwc/deploy.yaml new file mode 100644 index 0000000..6bd604a --- /dev/null +++ b/hwc/deploy.yaml @@ -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"] diff --git a/hwc/svc.yaml b/hwc/svc.yaml new file mode 100644 index 0000000..fcfb647 --- /dev/null +++ b/hwc/svc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: hwc +spec: + type: LoadBalancer + selector: + app: hwc + ports: + - protocol: TCP + port: 8081