This commit is contained in:
2025-12-10 15:46:31 +01:00
parent d02dac8800
commit 3f097b4f01

View File

@@ -7,12 +7,12 @@ metadata:
app.kubernetes.io/part-of: argocd app.kubernetes.io/part-of: argocd
spec: spec:
ports: ports:
- name: http - name: metrics
port: 9003 port: 9003
protocol: TCP protocol: TCP
targetPort: 9003 targetPort: 9003
selector: selector:
app.kubernetes.io/name: argocd-metrics-server app: argocd-metrics-server
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
@@ -26,31 +26,36 @@ spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: argocd-metrics-server app: argocd-metrics-server
strategy:
type: Recreate
template: template:
metadata: metadata:
labels: labels:
app.kubernetes.io/name: argocd-metrics-server app: argocd-metrics-server
spec: spec:
serviceAccountName: argocd-server serviceAccountName: argocd-server
containers: containers:
- name: argocd-metrics-server - name: argocd-metrics-server
image: quay.io/argoprojlabs/argocd-extension-metrics:v1.0.3 image: quay.io/argoprojlabs/argocd-extension-metrics:v1.0.3
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
args:
- '-enableTLS=false'
ports: ports:
- containerPort: 9003 - containerPort: 9003
name: http name: metrics
protocol: TCP protocol: TCP
volumeMounts: volumeMounts:
- name: config - name: config-volume
mountPath: /etc/config mountPath: /app/config.json
subPath: config.json
resources: resources:
limits:
cpu: 100m
memory: 128Mi
requests: requests:
cpu: 50m cpu: 100m
memory: 64Mi memory: 100Mi
limits:
cpu: 200m
memory: 200Mi
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
capabilities: capabilities:
@@ -60,7 +65,7 @@ spec:
runAsNonRoot: true runAsNonRoot: true
runAsUser: 999 runAsUser: 999
volumes: volumes:
- name: config - name: config-volume
configMap: configMap:
name: argocd-metrics-server-configmap name: argocd-metrics-server-configmap
securityContext: securityContext: