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

View File

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

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