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:
14
hello-world-nginx-deploy.yaml
Normal file
14
hello-world-nginx-deploy.yaml
Normal 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
|
@@ -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
|
||||||
|
12
hello-world-nginx-svc.yaml
Normal file
12
hello-world-nginx-svc.yaml
Normal 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
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user