From f73844815f8c782b6ce7c3899cf90dc13de721ee Mon Sep 17 00:00:00 2001 From: VladVascan <50298389+VladVascan@users.noreply.github.com> Date: Mon, 3 Jun 2019 09:19:18 +0100 Subject: [PATCH] Add files via upload --- Docker-azure.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Docker-azure.yml diff --git a/Docker-azure.yml b/Docker-azure.yml new file mode 100644 index 000000000..e8de336f9 --- /dev/null +++ b/Docker-azure.yml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2 +kind: Deployment +metadata: + name: mvnw-deployment +spec: + selector: + matchLabels: + app: mvnw + replicas: 5 # tells deployment to run 2 pods matching the template + template: + metadata: + labels: + app: mvnw + spec: + containers: + - name: mvnw + image: vladmitoc/petclinic-app:$(Build.BuildId)# + ports: + - containerPort: 80 +--- +# https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service +kind: Service +apiVersion: v1 +metadata: + name: mvnw-service +spec: + selector: + app: mvnw + ports: + - protocol: TCP + port: 80 + targetPort: 80 + type: LoadBalancer \ No newline at end of file