From 38e41f3177e58057771eb61d1e3f8ba8f9de8899 Mon Sep 17 00:00:00 2001 From: dev Date: Wed, 22 May 2019 14:48:03 -0400 Subject: [PATCH] add example deployment manifests --- examples/concat.yaml | 94 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 examples/concat.yaml diff --git a/examples/concat.yaml b/examples/concat.yaml new file mode 100644 index 0000000..a3df3e9 --- /dev/null +++ b/examples/concat.yaml @@ -0,0 +1,94 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: example + labels: + app: example +spec: + replicas: 1 + selector: + matchLabels: + app: example + template: + metadata: + labels: + app: example + spec: + containers: + - name: httpecho + image: hashicorp/http-echo + args: + - "-listen=:8080" + - "-text=hello world" + ports: + - containerPort: 8080 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: example2 + labels: + app: example2 +spec: + replicas: 1 + selector: + matchLabels: + app: example2 + template: + metadata: + labels: + app: example2 + spec: + containers: + - name: httpecho + image: hashicorp/http-echo + args: + - "-listen=:8080" + - "-text=hello world 2" + ports: + - containerPort: 8080 +--- +kind: Service +apiVersion: v1 +metadata: + name: example +spec: + type: ClusterIP + selector: + app: example + ports: + - protocol: TCP + port: 80 + targetPort: 8080 +--- +kind: Service +apiVersion: v1 +metadata: + name: example2 +spec: + type: ClusterIP + selector: + app: example2 + ports: + - protocol: TCP + port: 80 + targetPort: 8080 +--- +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: example + annotations: + kubernetes.io/ingress.class: caddy +spec: + rules: + - host: caddy2.kubed.co + http: + paths: + - path: /hello2 + backend: + serviceName: example2 + servicePort: 8080 + - backend: + serviceName: example + servicePort: 8080 \ No newline at end of file