fix the fix
This commit is contained in:
@@ -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
|
||||
- image: quay.io/argoprojlabs/argocd-extension-metrics:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
args:
|
||||
- '-enableTLS=false'
|
||||
name: argocd-metrics-server
|
||||
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
|
||||
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
|
||||
@@ -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
|
||||
- service.yaml
|
||||
15
manifests/metrics-server/service.yaml
Normal file
15
manifests/metrics-server/service.yaml
Normal 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
|
||||
Reference in New Issue
Block a user