mirror of
https://gitlab.com/MisterBiggs/hello-world-nginx.git
synced 2025-07-28 09:01:33 +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
|
||||
spec:
|
||||
backend:
|
||||
serviceName: hello-world-nginx
|
||||
serviceName: hello-world-nginx-svc
|
||||
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
|
||||
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
|
||||
|
Reference in New Issue
Block a user