Modification des fichiers nginx et argo en .yaml pour k8' selon best practice en prod + écriture de 2 scripts vérifés et fonctionnels pour configurer le dashbord de k8' et argoced et les ouvrir dans une page web

This commit is contained in:
Waloshi6
2026-02-02 14:29:59 +01:00
parent dcf530f6e2
commit a08b5a8eea
13 changed files with 109 additions and 117 deletions

View File

@@ -69,60 +69,3 @@ spec:
protocol: TCP
name: http
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-proxy
namespace: devops-demo
labels:
app: nginx-proxy
spec:
replicas: 1
selector:
matchLabels:
app: nginx-proxy
template:
metadata:
labels:
app: nginx-proxy
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
- containerPort: 443
volumeMounts:
- name: nginx-config
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: certs
mountPath: /etc/nginx/certs
volumes:
- name: nginx-config
configMap:
name: nginx-config
- name: certs
secret:
secretName: nginx-tls
---
apiVersion: v1
kind: Service
metadata:
name: nginx-service
namespace: devops-demo
spec:
selector:
app: nginx-proxy
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
- port: 443
targetPort: 443
protocol: TCP
name: https
type: NodePort