fix the fix

This commit is contained in:
2025-12-10 15:54:52 +01:00
parent 3f097b4f01
commit f468c8f9dd
3 changed files with 38 additions and 69 deletions

View File

@@ -1,29 +1,8 @@
apiVersion: v1
kind: Service
metadata:
name: argocd-metrics-server
labels:
app.kubernetes.io/name: argocd-metrics-server
app.kubernetes.io/part-of: argocd
spec:
ports:
- name: metrics
port: 9003
protocol: TCP
targetPort: 9003
selector:
app: argocd-metrics-server
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: argocd-metrics-server name: argocd-metrics-server
labels:
app.kubernetes.io/name: argocd-metrics-server
app.kubernetes.io/part-of: argocd
app.kubernetes.io/component: metrics-server
spec: spec:
replicas: 1
selector: selector:
matchLabels: matchLabels:
app: argocd-metrics-server app: argocd-metrics-server
@@ -34,43 +13,25 @@ spec:
labels: labels:
app: argocd-metrics-server app: argocd-metrics-server
spec: spec:
serviceAccountName: argocd-server
containers: containers:
- name: argocd-metrics-server - image: quay.io/argoprojlabs/argocd-extension-metrics:latest
image: quay.io/argoprojlabs/argocd-extension-metrics:v1.0.3
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
args: args:
- '-enableTLS=false' - '-enableTLS=false'
name: argocd-metrics-server
ports: ports:
- containerPort: 9003 - containerPort: 9003
name: metrics name: metrics
protocol: TCP protocol: TCP
volumeMounts:
- name: config-volume
mountPath: /app/config.json
subPath: config.json
resources: resources:
requests: requests:
cpu: 100m cpu: 100m
memory: 100Mi memory: 100Mi
limits: volumeMounts:
cpu: 200m - name: config-volume
memory: 200Mi mountPath: /app/config.json
securityContext: subPath: config.json
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 999
volumes: volumes:
- name: config-volume - name: config-volume
configMap: configMap:
name: argocd-metrics-server-configmap name: argocd-metrics-server-configmap
securityContext:
runAsNonRoot: true
runAsUser: 999
fsGroup: 999
seccompProfile:
type: RuntimeDefault

View File

@@ -1,13 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: argocd
resources: resources:
- configmap.yaml - configmap.yaml
- deployment.yaml - deployment.yaml
- service.yaml
commonLabels:
app.kubernetes.io/name: argocd-metrics-server
app.kubernetes.io/part-of: argocd
app.kubernetes.io/component: metrics-server

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: argocd-metrics-server
labels:
app.kubernetes.io/name: argocd-metrics-server
app.kubernetes.io/part-of: argocd
spec:
ports:
- name: metrics
port: 9003
protocol: TCP
targetPort: 9003
selector:
app: argocd-metrics-server