Skip to content

Instantly share code, notes, and snippets.

@JeromeJu
Created July 4, 2022 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeromeJu/cc8e4e758029b6694806604750b8911c to your computer and use it in GitHub Desktop.
Save JeromeJu/cc8e4e758029b6694806604750b8911c to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: vault-csi-provider
name: vault-csi-provider
namespace: csi
spec:
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
app: vault-csi-provider
template:
metadata:
labels:
app: vault-csi-provider
spec:
serviceAccountName: vault-csi-provider
tolerations:
containers:
- name: provider-vault-installer
image: hashicorp/vault-csi-provider:1.1.0
imagePullPolicy: Always
args:
- -endpoint=/provider/vault.sock
- -debug=false
resources:
requests:
cpu: 50m
memory: 100Mi
limits:
cpu: 50m
memory: 100Mi
volumeMounts:
- name: providervol
mountPath: "/provider"
livenessProbe:
httpGet:
path: "/health/ready"
port: 8080
scheme: "HTTP"
failureThreshold: 2
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 3
readinessProbe:
httpGet:
path: "/health/ready"
port: 8080
scheme: "HTTP"
failureThreshold: 2
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 3
volumes:
- name: providervol
hostPath:
path: "/etc/kubernetes/secrets-store-csi-providers"
nodeSelector:
beta.kubernetes.io/os: linux
---
# apiVersion: v1
# kind: ServiceAccount
# metadata:
# name: vault-csi-provider
# namespace: csi
# ---
# apiVersion: rbac.authorization.k8s.io/v1
# kind: ClusterRole
# metadata:
# name: vault-csi-provider-clusterrole
# rules:
# - apiGroups:
# - ""
# resources:
# - serviceaccounts/token
# verbs:
# - create
# ---
# apiVersion: rbac.authorization.k8s.io/v1
# kind: ClusterRoleBinding
# metadata:
# name: vault-csi-provider-clusterrolebinding
# roleRef:
# apiGroup: rbac.authorization.k8s.io
# kind: ClusterRole
# name: vault-csi-provider-clusterrole
# subjects:
# - kind: ServiceAccount
# name: vault-csi-provider
# namespace: csi
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: vault-csi-provider
name: vault-csi-provider
namespace: csi
spec:
updateStrategy:
type: RollingUpdate
selector:
matchLabels:
app: vault-csi-provider
template:
metadata:
labels:
app: vault-csi-provider
spec:
serviceAccountName: vault-csi-provider
tolerations:
containers:
- name: provider-vault-installer
image: hashicorp/vault-csi-provider:1.1.0
imagePullPolicy: Always
args:
- -endpoint=/provider/vault.sock
- -debug=false
resources:
requests:
cpu: 50m
memory: 100Mi
limits:
cpu: 50m
memory: 100Mi
volumeMounts:
- name: providervol
mountPath: "/provider"
livenessProbe:
httpGet:
path: "/health/ready"
port: 8080
scheme: "HTTP"
failureThreshold: 2
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 3
readinessProbe:
httpGet:
path: "/health/ready"
port: 8080
scheme: "HTTP"
failureThreshold: 2
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 3
volumes:
- name: providervol
hostPath:
path: "/etc/kubernetes/secrets-store-csi-providers"
nodeSelector:
beta.kubernetes.io/os: linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment