apiVersion: v1 kind: ServiceAccount metadata: name: reloader-reloader namespace: default --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: reloader-reloader-role rules: - apiGroups: - "" resources: - secrets - configmaps verbs: - list - get - watch - apiGroups: - apps resources: - deployments - daemonsets - statefulsets verbs: - list - get - update - patch - apiGroups: - extensions resources: - deployments - daemonsets verbs: - list - get - update - patch - apiGroups: - batch resources: - cronjobs verbs: - list - get - apiGroups: - batch resources: - jobs verbs: - create - apiGroups: - "" resources: - events verbs: - create - patch --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: reloader-reloader-role-binding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: reloader-reloader-role subjects: - kind: ServiceAccount name: reloader-reloader namespace: default --- apiVersion: apps/v1 kind: Deployment metadata: name: reloader-reloader namespace: default spec: replicas: 1 revisionHistoryLimit: 2 selector: matchLabels: app: reloader-reloader template: metadata: labels: app: reloader-reloader spec: containers: - env: - name: GOMAXPROCS valueFrom: resourceFieldRef: divisor: "1" resource: limits.cpu - name: GOMEMLIMIT valueFrom: resourceFieldRef: divisor: "1" resource: limits.memory image: "ghcr.io/stakater/reloader:latest" imagePullPolicy: IfNotPresent livenessProbe: failureThreshold: 5 httpGet: path: /live port: http initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 5 name: reloader-reloader ports: - containerPort: 9090 name: http readinessProbe: failureThreshold: 5 httpGet: path: /metrics port: http initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 5 resources: limits: cpu: "1" memory: 512Mi requests: cpu: 10m memory: 512Mi securityContext: {} securityContext: runAsNonRoot: true runAsUser: 65534 seccompProfile: type: RuntimeDefault serviceAccountName: reloader-reloader