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

added configmap

parent 16e1b30b
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: nginx-config name: nginx-conf
data: data:
nginx.conf: | nginx.conf: |
worker_processes auto; worker_processes auto;
......
...@@ -25,27 +25,19 @@ spec: ...@@ -25,27 +25,19 @@ spec:
- containerPort: 80 - containerPort: 80
- containerPort: 443 - containerPort: 443
resources: {} resources: {}
volumeMounts: volumeMounts:
- mountPath: /etc/nginx/nginx.conf - mountPath: /etc/nginx/
name: nginx-claim0 name: nginx-conf
- 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
restartPolicy: Always restartPolicy: Always
volumes: volumes:
- name: nginx-claim0 - name: nginx-conf
persistentVolumeClaim: configMap:
claimName: nginx-claim0 name: nginx-conf
- name: nginx-claim1 items:
persistentVolumeClaim: - key: nginx.conf
claimName: nginx-claim1 path: nginx.conf
- name: nginx-claim2 - key: cert.pem
persistentVolumeClaim: path: cert.pem
claimName: nginx-claim2 - key: privkey.pem
- name: nginx-claim3 path: privkey.pem
persistentVolumeClaim:
claimName: nginx-claim3
status: {} 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