fix
This commit is contained in:
@@ -7,12 +7,12 @@ metadata:
|
||||
app.kubernetes.io/part-of: argocd
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
- name: metrics
|
||||
port: 9003
|
||||
protocol: TCP
|
||||
targetPort: 9003
|
||||
selector:
|
||||
app.kubernetes.io/name: argocd-metrics-server
|
||||
app: argocd-metrics-server
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
@@ -26,31 +26,36 @@ spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: argocd-metrics-server
|
||||
app: argocd-metrics-server
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: argocd-metrics-server
|
||||
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: http
|
||||
name: metrics
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /etc/config
|
||||
- name: config-volume
|
||||
mountPath: /app/config.json
|
||||
subPath: config.json
|
||||
resources:
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
cpu: 100m
|
||||
memory: 100Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 200Mi
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
@@ -60,7 +65,7 @@ spec:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 999
|
||||
volumes:
|
||||
- name: config
|
||||
- name: config-volume
|
||||
configMap:
|
||||
name: argocd-metrics-server-configmap
|
||||
securityContext:
|
||||
|
||||
Reference in New Issue
Block a user