mirror of
https://github.com/wardviaene/kubernetes-course.git
synced 2026-02-14 17:49:56 +00:00
27 lines
518 B
YAML
27 lines
518 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: helloworld-nginx
|
|
labels:
|
|
app: helloworld-nginx
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx:1.11
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts:
|
|
- name: config-volume
|
|
mountPath: /etc/nginx/conf.d
|
|
- name: k8s-demo
|
|
image: wardviaene/k8s-demo
|
|
ports:
|
|
- containerPort: 3000
|
|
volumes:
|
|
- name: config-volume
|
|
configMap:
|
|
name: nginx-config
|
|
items:
|
|
- key: reverseproxy.conf
|
|
path: reverseproxy.conf
|