From 294024af9d4126e95778d0c28c7e829838595904 Mon Sep 17 00:00:00 2001 From: Tariq Islam Date: Wed, 6 Jun 2018 14:56:58 -0400 Subject: [PATCH] adding k8s manifests and skaffold updates --- hello-world-nginx-deploy.yaml | 14 ++++++++++++++ hello-world-nginx-ingress.yaml | 2 +- hello-world-nginx-svc.yaml | 12 ++++++++++++ skaffold.yaml | 2 +- 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 hello-world-nginx-deploy.yaml create mode 100644 hello-world-nginx-svc.yaml diff --git a/hello-world-nginx-deploy.yaml b/hello-world-nginx-deploy.yaml new file mode 100644 index 0000000..fb1c817 --- /dev/null +++ b/hello-world-nginx-deploy.yaml @@ -0,0 +1,14 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: hello-world-nginx-deployment +spec: + replicas: 2 + template: + metadata: + labels: + app: hello-world-nginx + spec: + containers: + - name: hello-world-nginx + image: gcr.io/gcp-demo-200100/hello-world-nginx:latest \ No newline at end of file diff --git a/hello-world-nginx-ingress.yaml b/hello-world-nginx-ingress.yaml index 3554a11..aea515b 100644 --- a/hello-world-nginx-ingress.yaml +++ b/hello-world-nginx-ingress.yaml @@ -4,5 +4,5 @@ metadata: name: hello-world-nginx-ingress spec: backend: - serviceName: hello-world-nginx + serviceName: hello-world-nginx-svc servicePort: 80 diff --git a/hello-world-nginx-svc.yaml b/hello-world-nginx-svc.yaml new file mode 100644 index 0000000..4d96722 --- /dev/null +++ b/hello-world-nginx-svc.yaml @@ -0,0 +1,12 @@ +kind: Service +apiVersion: v1 +metadata: + name: hello-world-nginx-svc +spec: + selector: + app: hello-world-nginx + type: NodePort + ports: + - protocol: TCP + port: 80 + targetPort: 80 \ No newline at end of file diff --git a/skaffold.yaml b/skaffold.yaml index be91019..81a214e 100644 --- a/skaffold.yaml +++ b/skaffold.yaml @@ -2,7 +2,7 @@ apiVersion: skaffold/v1alpha2 kind: Config build: artifacts: - - imageName: gcr.io/gcp-demo-200100/hello-world-nginx:latest + - imageName: gcr.io/gcp-demo-200100/hello-world-nginx kaniko: gcsBucket: skaffold-kaniko-contexts pullSecret: /Users/tariqislam/opt/sa/kaniko-sa.json