netflux-kubernetes/deploy/base/inflated/metrics-server/templates/deployment.yaml

70 lines
2.0 KiB
YAML
Raw Permalink Normal View History

2022-05-11 09:37:17 +00:00
---
# Source: metrics-server/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: metrics-server
2022-12-20 08:02:02 +00:00
namespace: default
2022-05-11 09:37:17 +00:00
labels:
2022-12-20 08:02:02 +00:00
helm.sh/chart: metrics-server-3.8.3
2022-05-11 09:37:17 +00:00
app.kubernetes.io/name: metrics-server
app.kubernetes.io/instance: metrics-server
2022-12-20 08:02:02 +00:00
app.kubernetes.io/version: "0.6.2"
2022-05-11 09:37:17 +00:00
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: metrics-server
app.kubernetes.io/instance: metrics-server
template:
metadata:
labels:
app.kubernetes.io/name: metrics-server
app.kubernetes.io/instance: metrics-server
spec:
2022-12-20 08:02:02 +00:00
schedulerName:
2022-05-11 09:37:17 +00:00
serviceAccountName: metrics-server
priorityClassName: "system-cluster-critical"
containers:
- name: metrics-server
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
2022-12-20 08:02:02 +00:00
image: k8s.gcr.io/metrics-server/metrics-server:v0.6.2
2022-05-11 09:37:17 +00:00
imagePullPolicy: IfNotPresent
args:
- --secure-port=4443
- --cert-dir=/tmp
- --kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname
- --kubelet-use-node-status-port
- --metric-resolution=15s
ports:
- name: https
protocol: TCP
containerPort: 4443
livenessProbe:
failureThreshold: 3
httpGet:
path: /livez
port: https
scheme: HTTPS
initialDelaySeconds: 0
periodSeconds: 10
readinessProbe:
failureThreshold: 3
httpGet:
path: /readyz
port: https
scheme: HTTPS
initialDelaySeconds: 20
periodSeconds: 10
volumeMounts:
- name: tmp
mountPath: /tmp
volumes:
- name: tmp
emptyDir: {}