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