Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- apiVersion: v1
- kind: Pod
- metadata:
- name: helloworld-nginx
- labels:
- app: helloworld-nginx
- spec:
- containers:
- - name: nginx
- image: nginx:1.15
- ports:
- - containerPort: 80
- volumeMounts:
- - mountPath: /etc/nginx/conf.d
- name: nginx-config
- - name: k8s-demo
- image: aslaen/k8s-demo
- ports:
- - containerPort: 3000
- volumes:
- - name: nginx-config
- configMap:
- name: nginx-config
- items:
- - key: reverseproxy.conf
- path: reverseproxy.conf
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: helloworld-nginx-service
- spec:
- selector:
- app: helloworld-nginx
- type: NodePort
- ports:
- - port: 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement