-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
292 additions
and
13 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
kubernetes/lianalabs/apps/bitwarden/bitwarden/app/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: bitwarden | ||
spec: | ||
interval: 30m | ||
chart: | ||
spec: | ||
chart: self-host | ||
version: 2024.11.0 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: bitwarden | ||
namespace: flux-system | ||
install: | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
cleanupOnFail: true | ||
remediation: | ||
retries: 3 | ||
values: | ||
admins: "${SECRET_ADMIN_EMAIL}" | ||
disableUserRegistration: "false" | ||
cloudRegion: US | ||
enableCloudCommunication: true # Enable billing and license sync | ||
sharedStorageClassName: openebs-hostpath | ||
#volumeAccessMode: "ReadWriteOnce" | ||
general: | ||
domain: "bitwarden.${SECRET_EXTERNAL_DOMAIN}" | ||
ingress: | ||
enabled: true | ||
className: traefik | ||
annotations: | ||
cert-manager.io/cluster-issuer: "letsencrypt-production" | ||
gethomepage.dev/enabled: "true" | ||
gethomepage.dev/group: Home | ||
gethomepage.dev/name: Bitwarden | ||
gethomepage.dev/description: Password management | ||
gethomepage.dev/icon: bitwarden | ||
cert: | ||
tls: | ||
name: bitwarden-tls | ||
clusterIssuer: letsencrypt-production | ||
email: | ||
smtpSsl: "false" | ||
smtpPort: "465" | ||
smtpHost: "${SECRET_SMTP_HOST}" | ||
replyToEmail: "${SECRET_SMTP_FROM}" | ||
secrets: | ||
secretName: bitwarden-secret | ||
database: | ||
enabled: true | ||
volume: | ||
logs: | ||
enabled: true |
6 changes: 6 additions & 0 deletions
6
kubernetes/lianalabs/apps/bitwarden/bitwarden/app/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./secret.sops.yaml | ||
- ./helmrelease.yaml |
33 changes: 33 additions & 0 deletions
33
kubernetes/lianalabs/apps/bitwarden/bitwarden/app/secret.sops.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# yamllint disable | ||
kind: Secret | ||
apiVersion: v1 | ||
type: Opaque | ||
metadata: | ||
name: bitwarden-secret | ||
stringData: | ||
replyToEmail: ENC[AES256_GCM,data:MoVLizAyKWEwnDtNuO7pph6mHzFY1VB1882DWKEg,iv:Nfr/5zGbM4xBpEPzK53PQKSU+7MiW075WbW3mhvmJys=,tag:EilT8Pw1KWPUDl8qNgtlOA==,type:str] | ||
globalSettings__installation__id: ENC[AES256_GCM,data:4yc5KK84NPuUq65T1hZrA6V3qlwWQOaklJac30c2aTpxmqrU,iv:XaqCbM7rCKTq4UD07oF3UY29MJElGXGesNEWpvpNsyI=,tag:nBbNg+fQYjAUp/vp4SlQ3w==,type:str] | ||
globalSettings__installation__key: ENC[AES256_GCM,data:gcncj3uMgyTqQCywGsPrmIxAOMk=,iv:WYpNY9CD5c5h75LDCq3Kh4Hgk7tcbBBx+MuC1n+dqQM=,tag:aQGfdBPmQsbUAvClUFNyeA==,type:str] | ||
globalSettings__mail__smtp__username: ENC[AES256_GCM,data:Vp8kVFGJduIXaln0KJWvgfQgUZZjfsA4c/ndh5h5,iv:+/QbObZ+JR+ZNZy8wYz2NL/E45mOF5yYYZ2H2t7srIM=,tag:pCqqSp3r0cRgSeQylTow0A==,type:str] | ||
globalSettings__mail__smtp__password: ENC[AES256_GCM,data:MqH5LRMfEVkslor8Ykeb7P8ieyhAPN8wMt79iAY2N+xAP7NlYqvVHst7yC5WuwjO7QE=,iv:PYF4AEZi+Ngqw+XyASrskZxab19np+M2ElXJHlptCw4=,tag:GCkBr0Kbaj4fBgOTfQZeQQ==,type:str] | ||
SA_PASSWORD: ENC[AES256_GCM,data:qRrF7jmmWMY2za8XzdPsJoZoqYGZ8Px+RpEGZh1dthLI0T9sAfm/oJ8gqlorLtOOJtJlsvMXUU64KWMl6gWHag==,iv:DWwKuKw+GD3AbA5WyrkFEOQvgZj+BMlyDG5VGBpNEdc=,tag:B+T375bMSQbi+CAygn0anw==,type:str] | ||
sops: | ||
kms: [] | ||
gcp_kms: [] | ||
azure_kv: [] | ||
hc_vault: [] | ||
age: | ||
- recipient: age19nu7uf8dageqlmzk23x7vl24fpn0l7cq20l3l4xxf2sk2xd5h98qss437p | ||
enc: | | ||
-----BEGIN AGE ENCRYPTED FILE----- | ||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB3ZUw3d2pUa0ZEZnYza2hl | ||
eWxydXFrVXNiY04rN2xPZ2lyQVBFVGh6M1Y0Ckg2aHNtcnliZS9SbXkzVERUK1Zv | ||
MlZJbUtDRUFyanV0Q0RtYlMzL2kzT1EKLS0tIG4wM2dLUmVocS9CK29tOUY1aGp1 | ||
MlVzLys4YWdENGJadkF5RStjVS9WajgKb1jfrt8LzybLkGGBNtWIC/zWKutJccrA | ||
Lsimmp4m+EMGVesJHDQA8dpp1I+xMhXGNmVwkNoSOgVBRYEsbWskow== | ||
-----END AGE ENCRYPTED FILE----- | ||
lastmodified: "2024-11-29T02:11:12Z" | ||
mac: ENC[AES256_GCM,data:u2ktT9wUCf1KPLE33amsT9qwnjpc+QBEdlo0UMEfXfyVa6+flVNpxP1Nrd6eGzxvy1HuXcML2kyswWiP5BG7hMGqS5BONr9x/t80nA4xwJMZ06sL+XdJZzTCkusp0IyXw/J6JFiNkPYCXswCbrgXfHR6b9ZokqfsNQ20868AabI=,iv:XVVLiGcC/h6G1qm7aRlEm+T8kjDQ3TFGfB99gSF7i1Q=,tag:4MeGgQEin5O9ixUmbEDLDg==,type:str] | ||
pgp: [] | ||
encrypted_regex: ^(data|stringData)$ | ||
version: 3.9.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: &app bitwarden | ||
namespace: flux-system | ||
spec: | ||
targetNamespace: bitwarden | ||
commonMetadata: | ||
labels: | ||
app.kubernetes.io/name: *app | ||
path: ./kubernetes/lianalabs/apps/bitwarden/bitwarden/app | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: k8s-gitops | ||
wait: true | ||
interval: 30m | ||
retryInterval: 1m | ||
timeout: 5m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./namespace.yaml | ||
- ./bitwarden/ks.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: bitwarden | ||
labels: | ||
kustomize.toolkit.fluxcd.io/prune: disabled |
95 changes: 95 additions & 0 deletions
95
kubernetes/lianalabs/apps/database/mssql/app/helmrelease.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
--- | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json | ||
# TODO: Finish this | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: &app mssql | ||
spec: | ||
interval: 30m | ||
chart: | ||
spec: | ||
chart: app-template | ||
version: 3.5.1 | ||
sourceRef: | ||
kind: HelmRepository | ||
name: bjw-s | ||
namespace: flux-system | ||
install: | ||
remediation: | ||
retries: 3 | ||
upgrade: | ||
cleanupOnFail: true | ||
remediation: | ||
strategy: rollback | ||
retries: 3 | ||
values: | ||
controllers: | ||
mssql: | ||
strategy: RollingUpdate | ||
containers: | ||
app: | ||
image: | ||
repository: mcr.microsoft.com/mssql/server | ||
tag: 2022-CU11-ubuntu-22.04 | ||
env: | ||
ACCEPT_EULA: "Y" | ||
envFrom: | ||
- secretRef: | ||
name: mssql-secret | ||
command: ["/manager"] | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 2G | ||
limits: | ||
cpu: 500m | ||
memory: 2G | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
readOnlyRootFilesystem: true | ||
capabilities: { drop: ["ALL"] } | ||
defaultPodOptions: | ||
securityContext: | ||
runAsNonRoot: true | ||
runAsUser: 65534 | ||
runAsGroup: 65534 | ||
seccompProfile: { type: RuntimeDefault } | ||
topologySpreadConstraints: | ||
- maxSkew: 1 | ||
topologyKey: kubernetes.io/hostname | ||
whenUnsatisfiable: DoNotSchedule | ||
labelSelector: | ||
matchLabels: | ||
app.kubernetes.io/name: *app | ||
service: | ||
app: | ||
controller: *app | ||
ports: | ||
sql: | ||
port: 1433 | ||
serviceAccount: | ||
create: true | ||
name: *app | ||
persistence: | ||
backups: | ||
storageClass: local-nvme | ||
accessMode: ReadWriteOnce | ||
size: 1Gi | ||
retain: true | ||
globalMounts: | ||
- path: /backups | ||
data: | ||
storageClass: local-nvme | ||
accessMode: ReadWriteOnce | ||
size: 10Gi | ||
retain: true | ||
globalMounts: | ||
- path: /data | ||
log: | ||
storageClass: local-nvme | ||
accessMode: ReadWriteOnce | ||
size: 10Gi | ||
retain: true | ||
globalMounts: | ||
- path: /log |
6 changes: 6 additions & 0 deletions
6
kubernetes/lianalabs/apps/database/mssql/app/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./secret.sops.yaml | ||
- ./helmrelease.yaml |
28 changes: 28 additions & 0 deletions
28
kubernetes/lianalabs/apps/database/mssql/app/secret.sops.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# yamllint disable | ||
kind: Secret | ||
apiVersion: v1 | ||
type: Opaque | ||
metadata: | ||
name: mssql-secret | ||
stringData: | ||
SA_PASSWORD: ENC[AES256_GCM,data:GoawVX7sVsqHmCH3LyZnMXw2TCI2XELfYrL2G8fDlq5XObnYJwWW5wCoKy7Yf4IzOjk+fwMD/bUpP8J9cPVC4Q==,iv:6eDtv8jFiYaYeDEMdLQVHDqJ1F6hIuQpDzeIcrZgGT8=,tag:HBk4kTILcmfSoKvI0I63og==,type:str] | ||
sops: | ||
kms: [] | ||
gcp_kms: [] | ||
azure_kv: [] | ||
hc_vault: [] | ||
age: | ||
- recipient: age19nu7uf8dageqlmzk23x7vl24fpn0l7cq20l3l4xxf2sk2xd5h98qss437p | ||
enc: | | ||
-----BEGIN AGE ENCRYPTED FILE----- | ||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBTb2N4TDE2NGtTdExiWlVl | ||
ODF1Uk5yRmliZ0ZQcG9Wak9NU1UxaGJ1TEVFCi96cUt0YUNtQ2dOWTR2OGlPK2sw | ||
bDR5VFViT1FEUXNvOFY5bFR1dVNJN00KLS0tIDJRMk1DUC8yb3cwZGVKaXlDWlNK | ||
TTRFZTRXSWFOUktzTzJBVmxHOUJOUlUKbZG3kDRkAVPe4vWOfuij5dX6BL7I+Mp+ | ||
ScZSmTgajhmnJNrEomq/3GDB9ppbE5gqStiATNeyoqO1Ud54oQqsyA== | ||
-----END AGE ENCRYPTED FILE----- | ||
lastmodified: "2024-11-29T02:25:56Z" | ||
mac: ENC[AES256_GCM,data:FPkasyJCOTL0eWOeK7DizXWNFdfvVr67Wp6JD/XPF4xjjgWRoqOLhd350AVfzrbNWDzgrjevXzRuK307AGaIhRrwAlkXkUAF6fuxwhTES0gOjNtDBeee5h10ragr6tNJ+mos6SRqs0ENSD6Lgh9zEGGMJVKiDDUZb93mEJKC8Ak=,iv:54MhjMza/5TGxtzHU83ZtPTRemVSqm9FUyzNyvo0NNQ=,tag:ae3CVLO4aufcng8L+poEeg==,type:str] | ||
pgp: [] | ||
encrypted_regex: ^(data|stringData)$ | ||
version: 3.9.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: &app mssql | ||
namespace: flux-system | ||
spec: | ||
targetNamespace: database | ||
commonMetadata: | ||
labels: | ||
app.kubernetes.io/name: *app | ||
path: ./kubernetes/lianalabs/apps/database/mssql/app | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: k8s-gitops | ||
wait: true | ||
interval: 30m | ||
retryInterval: 1m | ||
timeout: 5m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters