💥 add all the files

This commit is contained in:
2024-06-19 14:27:57 +01:00
parent 9df29480c9
commit 7aa5f13f44
18 changed files with 1281 additions and 0 deletions
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: global.env
namespace: bitwarden
data:
ACCEPT_EULA: "Y"
ASPNETCORE_ENVIRONMENT: Production
globalSettings__selfHosted: 'true'
globalSettings__baseServiceUri__vault: http://localhost
globalSettings__pushRelayBaseUri: https://push.bitwarden.com
@@ -0,0 +1,27 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: global.override.env
namespace: bitwarden
data:
ACCEPT_EULA: "Y"
globalSettings__baseServiceUri__vault: http://bitwarden.tryton.geeraert.eu
globalSettings__sqlServer__connectionString: "Data Source=tcp:mssql,1433;Initial Catalog=bitwarden_vault;Persist Security Info=False;User ID=sa;Password=ChQKWDIW73eSHzX1UyvGDAv4pFw6DVKM;MultipleActiveResultSets=False;Connect Timeout=30;Encrypt=True;TrustServerCertificate=True"
globalSettings__identityServer__certificatePassword: test
# globalSettings__identityServer__certificatePassword: npj8lep3npm9M18QJ3Wa630KSF0YqTe3
globalSettings__internalIdentityKey: I5TMbqmEjhw9uBNmFZ9rU6s1KN5xqAKXh7RSPfgyj2XQ4sjlP22SCupFn4IVhYX7
globalSettings__oidcIdentityClientKey: w47pWOkPa6mrTkiPuKizitsiRTR6NH8ufI01u77zbZt3LUcKWJ4wchMn6ouiwN7V
globalSettings__duo__aKey: p9jCHtnG4NZNZu4SThpVlCuOF1oePGhu53Wa4RJwuyeqRAWQ0aJN7GsKYrGbYIYO
globalSettings__installation__id: c36aded0-b0f1-4252-920b-ac4c008fc920
globalSettings__installation__key: CtQE5U1tMJE4Dzk7N9DU
globalSettings__yubico__clientId: REPLACE
globalSettings__yubico__key: REPLACE
globalSettings__mail__replyToEmail: no-reply@bitwarden.tryton.geeraert.eu
globalSettings__mail__smtp__host: smtp.gmail.com
globalSettings__mail__smtp__port: "587"
globalSettings__mail__smtp__ssl: "false"
globalSettings__mail__smtp__username: p3jh6qa2@gmail.com
globalSettings__mail__smtp__password: vmxkiidikqwirpuh
globalSettings__disableUserRegistration: "false"
globalSettings__hibpApiKey: REPLACE
adminSettings__admins: pierre@geeraert.eu
@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: mssql.env
namespace: bitwarden
data:
ACCEPT_EULA: "Y"
MSSQL_PID: Express
SA_PASSWORD: SECRET
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: mssql.override.env
namespace: bitwarden
data:
SA_PASSWORD: ChQKWDIW73eSHzX1UyvGDAv4pFw6DVKM
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: uid.env
namespace: bitwarden
data:
LOCAL_UID: "1001"
LOCAL_GID: "1001"
+99
View File
@@ -0,0 +1,99 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: admin
name: admin
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: admin
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.network/docker-public: "true"
io.kompose.service: admin
spec:
containers:
- name: bitwarden-admin
#image: bitwarden/admin:2023.1.0
image: bitwarden/admin:2024.5.0
envFrom:
- configMapRef:
name: global.env
- configMapRef:
name: uid.env
- configMapRef:
name: global.override.env
ports:
- containerPort: 5000
name: port5000
resources: {}
volumeMounts:
- name: bitwarden-core
mountPath: /etc/bitwarden/core
- name: bitwarden-ca-certificates
mountPath: /etc/bitwarden/ca-certificates
- name: bitwarden-logs
mountPath: /etc/bitwarden/logs
subPath: admin
restartPolicy: Always
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: admin
namespace: bitwarden
spec:
ports:
- port: 5000
targetPort: port5000
protocol: TCP
selector:
io.kompose.service: admin
+104
View File
@@ -0,0 +1,104 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: api
name: api
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: api
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.network/docker-public: "true"
io.kompose.service: api
spec:
containers:
- name: bitwarden-api
#image: bitwarden/api:2023.1.0
image: bitwarden/api:2024.5.0
###
# Bitbetter
###
#image: localhost:31795/bitbetter_api
image: localhost:31795/bitbetter_api_again:2024.5.0
envFrom:
- configMapRef:
name: global.env
- configMapRef:
name: uid.env
- configMapRef:
name: global.override.env
ports:
- containerPort: 5000
name: port5000
resources: {}
volumeMounts:
- name: bitwarden-core
mountPath: /etc/bitwarden/core
- name: bitwarden-ca-certificates
mountPath: /etc/bitwarden/ca-certificates
- name: bitwarden-logs
mountPath: /etc/bitwarden/logs
subPath: api
restartPolicy: Always
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
---
apiVersion: v1
kind: Service
metadata:
name: api
namespace: bitwarden
spec:
ports:
- port: 5000
# targetPort: port5000
protocol: TCP
selector:
io.kompose.service: api
@@ -0,0 +1,89 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: attachments
name: attachments
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: attachments
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.service: attachments
spec:
containers:
- name: bitwarden-attachments
#image: bitwarden/attachments:2023.1.0
image: bitwarden/attachments:2024.5.0
envFrom:
- configMapRef:
name: global.env
- configMapRef:
name: uid.env
ports:
- containerPort: 5000
name: port5000
resources: {}
volumeMounts:
- name: bitwarden-core
mountPath: /etc/bitwarden/core/attachments
subPath: attachments
restartPolicy: Always
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
---
apiVersion: v1
kind: Service
metadata:
name: attachments
namespace: bitwarden
spec:
ports:
- port: 5000
targetPort: port5000
protocol: TCP
selector:
io.kompose.service: attachments
+94
View File
@@ -0,0 +1,94 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: events
name: events
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: events
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.network/docker-public: "true"
io.kompose.service: events
spec:
containers:
- envFrom:
- configMapRef:
name: uid.env
- configMapRef:
name: global.env
- configMapRef:
name: global.override.env
#image: bitwarden/events:2023.1.0
image: bitwarden/events:2024.5.0
name: bitwarden-events
ports:
- containerPort: 5000
name: port5000
resources: {}
volumeMounts:
- name: bitwarden-ca-certificates
mountPath: /etc/bitwarden/ca-certificates
- name: bitwarden-logs
mountPath: /etc/bitwarden/logs
subPath: events
restartPolicy: Always
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
---
apiVersion: v1
kind: Service
metadata:
name: events
namespace: bitwarden
spec:
ports:
- port: 5000
targetPort: port5000
protocol: TCP
selector:
io.kompose.service: events
+93
View File
@@ -0,0 +1,93 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: icons
name: icons
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: icons
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.network/docker-public: "true"
io.kompose.service: icons
spec:
containers:
- name: bitwarden-icons
#image: bitwarden/icons:2023.1.0
image: bitwarden/icons:2024.5.0
envFrom:
- configMapRef:
name: global.env
- configMapRef:
name: uid.env
ports:
- containerPort: 5000
name: port5000
resources: {}
volumeMounts:
- name: bitwarden-ca-certificates
mountPath: /etc/bitwarden/ca-certificates
- name: bitwarden-logs
mountPath: /etc/bitwarden/logs
subPath: icons
restartPolicy: Always
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
---
apiVersion: v1
kind: Service
metadata:
name: icons
namespace: bitwarden
spec:
ports:
- port: 5000
targetPort: port5000
protocol: TCP
selector:
io.kompose.service: icons
+104
View File
@@ -0,0 +1,104 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: identity
name: identity
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: identity
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.network/docker-public: "true"
io.kompose.service: identity
spec:
containers:
- name: bitwarden-identity
#image: bitwarden/identity:2023.1.0
#image: bitwarden/identity:2024.5.0
###
# Bitbetter
###
#image: localhost:31795/bitbetter_identity
image: localhost:31795/bitbetter_identity_again:2024.5.0
envFrom:
- configMapRef:
name: global.env
- configMapRef:
name: uid.env
- configMapRef:
name: global.override.env
ports:
- containerPort: 5000
name: port5000
resources: {}
volumeMounts:
- name: bitwarden-identity
mountPath: /etc/bitwarden/identity
- name: bitwarden-core
mountPath: /etc/bitwarden/core
- name: bitwarden-ca-certificates
mountPath: /etc/bitwarden/ca-certificates
- name: bitwarden-logs
mountPath: /etc/bitwarden/logs
subPath: identity
restartPolicy: Always
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
---
apiVersion: v1
kind: Service
metadata:
name: identity
namespace: bitwarden
spec:
ports:
- port: 5000
# targetPort: port5000
protocol: TCP
selector:
io.kompose.service: identity
+108
View File
@@ -0,0 +1,108 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: mssql
name: mssql
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: mssql
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.service: mssql
spec:
containers:
- name: bitwarden-mssql
image: bitwarden/mssql:2023.1.0
image: bitwarden/mssql:2024.5.0
#image: mcr.microsoft.com/mssql/server:2022-CU11-ubuntu-22.04
envFrom:
- configMapRef:
name: mssql.env
- configMapRef:
name: uid.env
- configMapRef:
name: mssql.override.env
ports:
- containerPort: 5000
name: port5000
- containerPort: 1433
name: mssql
resources: {}
volumeMounts:
- name: bitwarden-mssql
mountPath: /var/opt/mssql/data
subPath: data
- name: bitwarden-logs
mountPath: /var/opt/mssql/log
subPath: mssql
restartPolicy: Always
terminationGracePeriodSeconds: 60
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
---
apiVersion: v1
kind: Service
metadata:
name: mssql
namespace: bitwarden
spec:
ports:
- name: webport
port: 5000
targetPort: port5000
protocol: TCP
- name: mssqlport
port: 1433
targetPort: mssql
protocol: TCP
selector:
io.kompose.service: mssql
+110
View File
@@ -0,0 +1,110 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: nginx
name: nginx
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: nginx
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.network/docker-public: "true"
io.kompose.service: nginx
spec:
containers:
- name: bitwarden-nginx
#image: bitwarden/nginx:2023.1.0
image: bitwarden/nginx:2024.5.0
envFrom:
- configMapRef:
name: uid.env
ports:
- containerPort: 5000
name: port5000
- containerPort: 8080
name: nginx-http
- containerPort: 8443
name: nginx-https
resources: {}
volumeMounts:
- name: bitwarden-nginx
mountPath: /etc/bitwarden/nginx
- name: bitwarden-letsencrypt
mountPath: /etc/letsencrypt
- name: bitwarden-ssl
mountPath: /etc/ssl
- name: bitwarden-logs
mountPath: /var/log/nginx
subPath: nginx
restartPolicy: Always
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
---
apiVersion: v1
kind: Service
metadata:
name: nginx
namespace: bitwarden
spec:
ports:
- name: port5000
port: 5000
targetPort: port5000
protocol: TCP
- name: http
port: 8080
targetPort: nginx-http
protocol: TCP
- name: https
port: 8443
targetPort: nginx-https
protocol: TCP
selector:
io.kompose.service: nginx
+22
View File
@@ -0,0 +1,22 @@
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: nginx
name: nginx
spec:
ports:
- name: "8080"
port: 8080
# targetPort: nginx-http
protocol: TCP
- name: "8443"
port: 8443
# targetPort: nginx-https
protocol: TCP
selector:
io.kompose.service: nginx
@@ -0,0 +1,97 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: notifications
name: notifications
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: notifications
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.network/docker-public: "true"
io.kompose.service: notifications
spec:
containers:
- name: bitwarden-notifications
#image: bitwarden/notifications:2023.1.0
image: bitwarden/notifications:2024.5.0
envFrom:
- configMapRef:
name: global.env
- configMapRef:
name: uid.env
- configMapRef:
name: global.override.env
ports:
- containerPort: 5000
name: port5000
resources: {}
volumeMounts:
- name: bitwarden-ca-certificates
mountPath: /etc/bitwarden/ca-certificates
- name: bitwarden-logs
mountPath: /etc/bitwarden/logs
subPath: notifications
restartPolicy: Always
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
---
apiVersion: v1
kind: Service
metadata:
name: notifications
namespace: bitwarden
spec:
ports:
- port: 5000
targetPort: port5000
protocol: TCP
selector:
io.kompose.service: notifications
+108
View File
@@ -0,0 +1,108 @@
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: bitwarden-mssql
spec:
storageClassName: nfs-storage-intelligent
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: bitwarden-logs
spec:
storageClassName: nfs-storage-intelligent
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: bitwarden-web
spec:
storageClassName: nfs-storage-intelligent
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: bitwarden-core
spec:
storageClassName: nfs-storage-intelligent
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: bitwarden-ca-certificates
spec:
storageClassName: nfs-storage-intelligent
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: bitwarden-identity
spec:
storageClassName: nfs-storage-intelligent
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: bitwarden-nginx
spec:
storageClassName: nfs-storage-intelligent
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: bitwarden-letsencrypt
spec:
storageClassName: nfs-storage-intelligent
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: bitwarden-ssl
spec:
storageClassName: nfs-storage-intelligent
accessModes:
- ReadWriteMany
resources:
requests:
storage: 200Mi
+101
View File
@@ -0,0 +1,101 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: sso
name: sso
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: sso
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.network/docker-public: "true"
io.kompose.service: sso
spec:
containers:
- name: bitwarden-sso
#image: bitwarden/sso:2023.1.0
image: bitwarden/sso:2024.5.0
envFrom:
- configMapRef:
name: global.env
- configMapRef:
name: uid.env
- configMapRef:
name: global.override.env
ports:
- containerPort: 5000
name: port5000
resources: {}
volumeMounts:
- name: bitwarden-identity
mountPath: /etc/bitwarden/identity
- name: bitwarden-core
mountPath: /etc/bitwarden/core
- name: bitwarden-ca-certificates
mountPath: /etc/bitwarden/ca-certificates
- name: bitwarden-logs
mountPath: /etc/bitwarden/logs
subPath: sso
restartPolicy: Always
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
---
apiVersion: v1
kind: Service
metadata:
name: sso
namespace: bitwarden
spec:
ports:
- port: 5000
targetPort: port5000
protocol: TCP
selector:
io.kompose.service: sso
+90
View File
@@ -0,0 +1,90 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: web
name: web
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: web
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/docker-default: "true"
io.kompose.service: web
spec:
containers:
- name: bitwarden-web
#image: bitwarden/web:2023.1.0
image: bitwarden/web:2024.5.0
ports:
- containerPort: 5000
name: port5000
envFrom:
- configMapRef:
name: global.env
- configMapRef:
name: uid.env
resources: {}
volumeMounts:
- name: bitwarden-web
mountPath: /etc/bitwarden/web
restartPolicy: Always
volumes:
- name: bitwarden-ca-certificates
persistentVolumeClaim:
claimName: bitwarden-ca-certificates
- name: bitwarden-core
persistentVolumeClaim:
claimName: bitwarden-core
- name: bitwarden-identity
persistentVolumeClaim:
claimName: bitwarden-identity
- name: bitwarden-letsencrypt
persistentVolumeClaim:
claimName: bitwarden-letsencrypt
- name: bitwarden-logs
persistentVolumeClaim:
claimName: bitwarden-logs
- name: bitwarden-mssql
persistentVolumeClaim:
claimName: bitwarden-mssql
- name: bitwarden-nginx
persistentVolumeClaim:
claimName: bitwarden-nginx
- name: bitwarden-ssl
persistentVolumeClaim:
claimName: bitwarden-ssl
- name: bitwarden-web
persistentVolumeClaim:
claimName: bitwarden-web
---
apiVersion: v1
kind: Service
metadata:
name: web
namespace: bitwarden
spec:
ports:
- port: 5000
targetPort: port5000
protocol: TCP
selector:
io.kompose.service: web