| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: nginx-config
- data:
- nginx.conf: |
- your config
- comes here
- like this
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: nginx-deployment
- spec:
- selector:
- matchLabels:
- app: nginx
- replicas: 1
- template:
- metadata:
- labels:
- app: nginx
- spec:
- containers:
- - name: nginx
- image: nginx:1.7.9
- ports:
- - containerPort: 80
- volumeMounts:
- - name: nginx-config
- mountPath: /etc/nginx/nginx.conf
- subPath: nginx.conff
- volumes:
- - name: nginx-config
- configMap:
- name: nginx-config
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: hue-balancer
- spec:
- type: NodePort
- # type: LoadBalancer
- selector:
- app: nginx
- ports:
- - protocol: TCP
- port: 80
- targetPort: 80
|