add harness deployments and services
+62 · 4 files changed
-
harness/services/primary_container_deployment.yaml+21 −0 -
harness/services/primary_service.yaml+10 −0 -
harness/services/secondary_container_deployment.yaml+21 −0 -
harness/services/secondary_service.yaml+10 −0
@@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: primary_container +spec: + replicas: 1 + revisionHistoryLimit: 3 + selector: + matchLabels: + app: guestbook-ui + template: + metadata: + labels: + app: container-pair-test + spec: + containers: + - image: azacrkub.azurecr.io/primary_container:latest + name: primary_container + ports: + - containerPort: 12345 + @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: primary_container +spec: + ports: + - port: 80 + targetPort: 12345 + selector: + app: primary_container @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: secondary_container +spec: + replicas: 1 + revisionHistoryLimit: 3 + selector: + matchLabels: + app: guestbook-ui + template: + metadata: + labels: + app: container-pair-test + spec: + containers: + - image: azacrkub.azurecr.io/secondary_container:latest + name: secondary_container + ports: + - containerPort: 23456 + @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: secondary_container +spec: + ports: + - port: 80 + targetPort: 12345 + selector: + app: secondary_container