Delete deployment.yaml
This commit is contained in:
-101
@@ -1,101 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: netdata-k8s-state
|
|
||||||
labels:
|
|
||||||
app: netdata
|
|
||||||
role: k8sState
|
|
||||||
spec:
|
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: netdata
|
|
||||||
role: k8sState
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
container.apparmor.security.beta.kubernetes.io/netdata: unconfined
|
|
||||||
labels:
|
|
||||||
app: netdata
|
|
||||||
role: k8sState
|
|
||||||
spec:
|
|
||||||
securityContext:
|
|
||||||
fsGroup: 201
|
|
||||||
serviceAccountName: netdata
|
|
||||||
restartPolicy: Always
|
|
||||||
containers:
|
|
||||||
- name: netdata
|
|
||||||
image: "netdata/netdata:edge"
|
|
||||||
imagePullPolicy: Always
|
|
||||||
env:
|
|
||||||
- name: MY_POD_NAME
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.name
|
|
||||||
- name: MY_POD_NAMESPACE
|
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.namespace
|
|
||||||
- name: NETDATA_LISTENER_PORT
|
|
||||||
value: '19999'
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
containerPort: 19999
|
|
||||||
protocol: TCP
|
|
||||||
livenessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["/usr/sbin/netdatacli", "ping"]
|
|
||||||
initialDelaySeconds: 0
|
|
||||||
failureThreshold: 3
|
|
||||||
periodSeconds: 30
|
|
||||||
successThreshold: 1
|
|
||||||
timeoutSeconds: 1
|
|
||||||
readinessProbe:
|
|
||||||
exec:
|
|
||||||
command: ["/usr/sbin/netdatacli", "ping"]
|
|
||||||
initialDelaySeconds: 0
|
|
||||||
failureThreshold: 3
|
|
||||||
periodSeconds: 30
|
|
||||||
successThreshold: 1
|
|
||||||
timeoutSeconds: 1
|
|
||||||
volumeMounts:
|
|
||||||
- name: os-release
|
|
||||||
mountPath: /host/etc/os-release
|
|
||||||
- name: configmap
|
|
||||||
mountPath: /etc/netdata/go.d.conf
|
|
||||||
subPath: go.d
|
|
||||||
- name: configmap
|
|
||||||
mountPath: /etc/netdata/go.d/httpcheck.conf
|
|
||||||
subPath: httpcheck
|
|
||||||
- name: configmap
|
|
||||||
mountPath: /etc/netdata/go.d/dns_query.conf
|
|
||||||
subPath: dnsquery
|
|
||||||
- name: configmap
|
|
||||||
mountPath: /etc/netdata/go.d/x509check.conf
|
|
||||||
subPath: x509check
|
|
||||||
- name: configmap
|
|
||||||
mountPath: /etc/netdata/go.d/k8s_state.conf
|
|
||||||
subPath: go.d-k8s_state
|
|
||||||
- name: configmap
|
|
||||||
mountPath: /etc/netdata/netdata.conf
|
|
||||||
subPath: netdata
|
|
||||||
- name: configmap
|
|
||||||
mountPath: /etc/netdata/stream.conf
|
|
||||||
subPath: stream
|
|
||||||
- name: varlib
|
|
||||||
mountPath: /var/lib/netdata
|
|
||||||
resources: {}
|
|
||||||
terminationGracePeriodSeconds: 30
|
|
||||||
volumes:
|
|
||||||
- name: os-release
|
|
||||||
hostPath:
|
|
||||||
path: /etc/os-release
|
|
||||||
- name: configmap
|
|
||||||
configMap:
|
|
||||||
name: netdata-conf-k8s-state
|
|
||||||
optional: true
|
|
||||||
- name: varlib
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: netdata-k8s-state-varlib
|
|
||||||
dnsPolicy: ClusterFirstWithHostNet
|
|
||||||
Reference in New Issue
Block a user