fix: deploy Bitwarden to security/bitwarden/ (correct namespace structure) #100
@@ -1,7 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: security
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: bitwarden
|
|
||||||
app.kubernetes.io/managed-by: orion
|
|
||||||
+8
-10
@@ -21,19 +21,17 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
env:
|
env:
|
||||||
- name: WEBSOCKET_ENABLED
|
- name: BW_ADMIN_DOMAIN
|
||||||
|
value: bitwarden.khalisio.com
|
||||||
|
- name: WEBSOCKETS_ENABLED
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: SIGNUPS_ALLOWED
|
- name: SIGNUPS_ALLOWED
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: ADMIN_TOKEN
|
- name: DOMAIN
|
||||||
valueFrom:
|
value: https://bitwarden.khalisio.com
|
||||||
secretKeyRef:
|
envFrom:
|
||||||
name: bitwarden-secret
|
- secretRef:
|
||||||
key: admin-token
|
name: bitwarden-secret
|
||||||
- name: DB_CERT_FORMAT
|
|
||||||
value: "pem"
|
|
||||||
- name: SIGNUP_ORIGINS
|
|
||||||
value: "https://bitwarden.khalisio.com"
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: bitwarden-data
|
- name: bitwarden-data
|
||||||
mountPath: /data
|
mountPath: /data
|
||||||
@@ -4,18 +4,15 @@ metadata:
|
|||||||
name: bitwarden
|
name: bitwarden
|
||||||
namespace: security
|
namespace: security
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: traefik
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
- websecure
|
- websecure
|
||||||
|
tls:
|
||||||
|
secretName: bitwarden-tls
|
||||||
routes:
|
routes:
|
||||||
- match: Host(`bitwarden.khalisio.com`)
|
- match: Host(`bitwarden.khalisio.com`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: bitwarden
|
- name: bitwarden
|
||||||
port: 80
|
port: 80
|
||||||
tls:
|
|
||||||
secretName: bitwarden-tls
|
|
||||||
options:
|
|
||||||
name: default
|
|
||||||
kind: ClusterEntrypoint
|
|
||||||
@@ -3,13 +3,11 @@ kind: Service
|
|||||||
metadata:
|
metadata:
|
||||||
name: bitwarden
|
name: bitwarden
|
||||||
namespace: security
|
namespace: security
|
||||||
labels:
|
|
||||||
app: bitwarden
|
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
selector:
|
selector:
|
||||||
app: bitwarden
|
app: bitwarden
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
type: ClusterIP
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: security
|
||||||
|
labels:
|
||||||
|
name: security
|
||||||
Reference in New Issue
Block a user