2025-05-26 17:10:01 -05:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: bitwarden-cli
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/instance: bitwarden-cli
|
|
|
|
|
app.kubernetes.io/name: bitwarden-cli
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app.kubernetes.io/name: bitwarden-cli
|
|
|
|
|
app.kubernetes.io/instance: bitwarden-cli
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/name: bitwarden-cli
|
|
|
|
|
app.kubernetes.io/instance: bitwarden-cli
|
|
|
|
|
spec:
|
|
|
|
|
containers:
|
|
|
|
|
- name: bitwarden-cli
|
2025-11-23 14:43:36 -06:00
|
|
|
image: "ghcr.io/greg-hellings/nixos-config/img-bitwarden:latest"
|
|
|
|
|
#image: >-
|
|
|
|
|
# registry.thehellings.com/greg/nixos-config/img-bitwarden:latest
|
2025-05-26 17:10:01 -05:00
|
|
|
imagePullPolicy: Always
|
|
|
|
|
env:
|
|
|
|
|
- name: BW_CLIENTID
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: bitwarden-cli
|
|
|
|
|
key: BW_CLIENTID
|
|
|
|
|
- name: BW_CLIENTSECRET
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: bitwarden-cli
|
|
|
|
|
key: BW_CLIENTSECRET
|
|
|
|
|
- name: BW_PASSWORD
|
|
|
|
|
valueFrom:
|
|
|
|
|
secretKeyRef:
|
|
|
|
|
name: bitwarden-cli
|
|
|
|
|
key: BW_PASSWORD
|
|
|
|
|
ports:
|
|
|
|
|
- name: http
|
|
|
|
|
containerPort: 8087
|
|
|
|
|
protocol: TCP
|
|
|
|
|
livenessProbe:
|
|
|
|
|
exec:
|
|
|
|
|
command:
|
|
|
|
|
- wget
|
|
|
|
|
- -q
|
|
|
|
|
- http://127.0.0.1:8087/sync?force=true
|
|
|
|
|
- --post-data=''
|
|
|
|
|
initialDelaySeconds: 20
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
timeoutSeconds: 10
|
|
|
|
|
periodSeconds: 120
|
|
|
|
|
readinessProbe:
|
|
|
|
|
tcpSocket:
|
|
|
|
|
port: 8087
|
|
|
|
|
initialDelaySeconds: 20
|
|
|
|
|
failureThreshold: 3
|
|
|
|
|
timeoutSeconds: 1
|
|
|
|
|
periodSeconds: 10
|
|
|
|
|
startupProbe:
|
|
|
|
|
tcpSocket:
|
|
|
|
|
port: 8087
|
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
|
failureThreshold: 30
|
|
|
|
|
timeoutSeconds: 1
|
|
|
|
|
periodSeconds: 5
|