apiVersion: v1 kind: ConfigMap metadata: name: argocd-ui-proxy namespace: argocd data: default.conf: | server { listen 8080; location / { proxy_pass http://argocd-server.argocd.svc.cluster.local:80; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto http; proxy_set_header X-Forwarded-Host $host; proxy_read_timeout 300; proxy_buffering off; } } --- apiVersion: apps/v1 kind: Deployment metadata: name: argocd-ui-proxy namespace: argocd spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: argocd-ui-proxy template: metadata: labels: app: argocd-ui-proxy spec: nodeName: prod102 containers: - name: nginx image: nginx:latest imagePullPolicy: IfNotPresent ports: - name: http containerPort: 8080 hostPort: 8080 volumeMounts: - name: conf mountPath: /etc/nginx/conf.d volumes: - name: conf configMap: name: argocd-ui-proxy