Commit 00a2a841 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added configmap

parent 16e1b30b
apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-config
name: nginx-conf
data:
nginx.conf: |
worker_processes auto;
......
......@@ -25,27 +25,19 @@ spec:
- containerPort: 80
- containerPort: 443
resources: {}
volumeMounts:
- mountPath: /etc/nginx/nginx.conf
name: nginx-claim0
- mountPath: /etc/nginx/cert/cert.pem
name: nginx-claim1
- mountPath: /etc/nginx/cert/privkey.pem
name: nginx-claim2
- mountPath: /etc/nginx/htpasswd
name: nginx-claim3
volumeMounts:
- mountPath: /etc/nginx/
name: nginx-conf
restartPolicy: Always
volumes:
- name: nginx-claim0
persistentVolumeClaim:
claimName: nginx-claim0
- name: nginx-claim1
persistentVolumeClaim:
claimName: nginx-claim1
- name: nginx-claim2
persistentVolumeClaim:
claimName: nginx-claim2
- name: nginx-claim3
persistentVolumeClaim:
claimName: nginx-claim3
- name: nginx-conf
configMap:
name: nginx-conf
items:
- key: nginx.conf
path: nginx.conf
- key: cert.pem
path: cert.pem
- key: privkey.pem
path: privkey.pem
status: {}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment