Files
k8s-kms-plugin/templates/infisical-kms-plugin.yaml
2024-10-31 22:10:52 +08:00

55 lines
1.4 KiB
YAML

apiVersion: v1
kind: Pod
metadata:
name: infisical-kms-plugin
namespace: kube-system
labels:
tier: control-plane
component: infisical-kms-plugin
spec:
priorityClassName: system-node-critical
hostNetwork: true
containers:
- name: infisical-kms-plugin
image: infisical/kubernetes-kms:v0.0.2
imagePullPolicy: IfNotPresent
args:
- --ua-client-id=<ua-client-id-here>
- --ua-client-secret=<ua-client-secret-here>
- --kms-key=<kms-key-id-here>
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsUser: 0
ports:
- containerPort: 8787 # Must match the value defined in --healthz-port
protocol: TCP
livenessProbe:
httpGet:
path: /healthz # Must match the value defined in --healthz-path
port: 8787 # Must match the value defined in --healthz-port
failureThreshold: 2
periodSeconds: 10
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 4
memory: 2Gi
volumeMounts:
- name: etc-kubernetes
mountPath: /etc/kubernetes
- name: sock
mountPath: /opt
volumes:
- name: etc-kubernetes
hostPath:
path: /etc/kubernetes
- name: sock
hostPath:
path: /opt