Mise en place d'ArgoCD : début du transfert des docker compose vers kubern8 ==> suppression du docker compose pour nginx (remplacer par nginx-proxy.yaml
This commit is contained in:
@@ -23,17 +23,17 @@ spec:
|
||||
- containerPort: 443
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /etc/nginx/nginx.conf
|
||||
mountPath: /mnt/c/DevOpsProject/config/nginx.conf
|
||||
subPath: nginx.conf
|
||||
- name: certs
|
||||
mountPath: /etc/nginx/certs
|
||||
mountPath: /mnt/c/DevOpsProject/config/certs
|
||||
volumes:
|
||||
- name: config
|
||||
hostPath:
|
||||
path: /run/desktop/mnt/host/c/DevOpsProject/kubernetes/manifests/nginx/nginx.conf
|
||||
- name: certs
|
||||
hostPath:
|
||||
path: /run/desktop/mnt/host/c/DevOpsProject/kubernetes/manifests/nginx/certs
|
||||
- name: config
|
||||
configMap:
|
||||
name: nginx-config
|
||||
- name: certs
|
||||
secret:
|
||||
secretName: nginx-tls
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -44,10 +44,12 @@ spec:
|
||||
selector:
|
||||
app: nginx-proxy
|
||||
ports:
|
||||
- protocol: TCP
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
- protocol: TCP
|
||||
- name: https
|
||||
protocol: TCP
|
||||
port: 443
|
||||
targetPort: 443
|
||||
targetPort: 443
|
||||
type: NodePort
|
||||
Reference in New Issue
Block a user