1
0
mirror of https://gitlab.com/MisterBiggs/hello-world-nginx.git synced 2025-07-28 17:11:25 +00:00

adding k8s manifests and skaffold updates

This commit is contained in:
Tariq Islam
2018-06-06 14:56:58 -04:00
parent bb5dfd54ab
commit 294024af9d
4 changed files with 28 additions and 2 deletions

View File

@@ -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

View File

@@ -4,5 +4,5 @@ metadata:
name: hello-world-nginx-ingress name: hello-world-nginx-ingress
spec: spec:
backend: backend:
serviceName: hello-world-nginx serviceName: hello-world-nginx-svc
servicePort: 80 servicePort: 80

View File

@@ -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

View File

@@ -2,7 +2,7 @@ apiVersion: skaffold/v1alpha2
kind: Config kind: Config
build: build:
artifacts: artifacts:
- imageName: gcr.io/gcp-demo-200100/hello-world-nginx:latest - imageName: gcr.io/gcp-demo-200100/hello-world-nginx
kaniko: kaniko:
gcsBucket: skaffold-kaniko-contexts gcsBucket: skaffold-kaniko-contexts
pullSecret: /Users/tariqislam/opt/sa/kaniko-sa.json pullSecret: /Users/tariqislam/opt/sa/kaniko-sa.json