generated from onedr0p/cluster-template
-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
a2862c7
commit 6c5a8ec
Showing
9 changed files
with
90 additions
and
231 deletions.
There are no files selected for viewing
25 changes: 9 additions & 16 deletions
25
kubernetes/pi/apps/default/free-game-notifier/app/externalsecret.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 |
---|---|---|
@@ -1,23 +1,16 @@ | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: free-game-notifier | ||
name: &name free-game-notifier | ||
spec: | ||
secretStoreRef: | ||
name: bitwarden-secrets-manager | ||
kind: ClusterSecretStore | ||
target: | ||
deletionPolicy: Delete | ||
template: | ||
engineVersion: v2 | ||
type: Opaque | ||
data: | ||
DISCORD_WEBHOOK: "{{ .DISCORD_WEBHOOK }}" | ||
refreshInterval: 1h | ||
name: *name | ||
data: | ||
- secretKey: DISCORD_WEBHOOK | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-fields | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: de1b453f-d386-47df-8fd4-ac6e00f706e3 | ||
property: DISCORD_WEBHOOK | ||
- secretKey: DISCORD_WEBHOOK | ||
remoteRef: | ||
key: free-games |
30 changes: 9 additions & 21 deletions
30
kubernetes/pi/apps/default/mosquitto/app/externalsecret.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 |
---|---|---|
@@ -1,34 +1,22 @@ | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: mosquitto | ||
name: &name mosquitto | ||
spec: | ||
secretStoreRef: | ||
name: bitwarden-secrets-manager | ||
kind: ClusterSecretStore | ||
target: | ||
deletionPolicy: Delete | ||
name: *name | ||
template: | ||
engineVersion: v2 | ||
type: Opaque | ||
data: | ||
username: "{{ .MQTT_USERNAME }}" | ||
password: "{{ .MQTT_PASSWORD }}" | ||
mosquitto_pwd: | | ||
{{ .MQTT_USERNAME }}:{{ .MQTT_PASSWORD }} | ||
refreshInterval: 1h | ||
data: | ||
- secretKey: MQTT_USERNAME | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-login | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 2b8799c5-7d83-42aa-99c9-b072001ee0f3 | ||
property: username | ||
- secretKey: MQTT_PASSWORD | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-login | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 2b8799c5-7d83-42aa-99c9-b072001ee0f3 | ||
property: password | ||
dataFrom: | ||
- extract: | ||
key: mqtt |
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
62 changes: 14 additions & 48 deletions
62
kubernetes/pi/apps/default/zigbee2mqtt/app/externalsecret.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 |
---|---|---|
@@ -1,61 +1,27 @@ | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: zigbee2mqtt | ||
name: &name zigbee2mqtt | ||
spec: | ||
secretStoreRef: | ||
name: bitwarden-secrets-manager | ||
kind: ClusterSecretStore | ||
target: | ||
deletionPolicy: Delete | ||
name: *name | ||
template: | ||
engineVersion: v2 | ||
type: Opaque | ||
data: | ||
# App | ||
ZIGBEE2MQTT_CONFIG_ADVANCED_EXT_PAN_ID: "{{ .z2m_ext_pan_id }}" | ||
ZIGBEE2MQTT_CONFIG_ADVANCED_PAN_ID: "{{ .z2m_pan_id }}" | ||
ZIGBEE2MQTT_CONFIG_ADVANCED_NETWORK_KEY: "{{ .z2m_network_key }}" | ||
ZIGBEE2MQTT_CONFIG_ADVANCED_EXT_PAN_ID: "{{ .ZIGBEE2MQTT_CONFIG_ADVANCED_EXT_PAN_ID }}" | ||
ZIGBEE2MQTT_CONFIG_ADVANCED_PAN_ID: "{{ .ZIGBEE2MQTT_CONFIG_ADVANCED_PAN_ID }}" | ||
ZIGBEE2MQTT_CONFIG_ADVANCED_NETWORK_KEY: "{{ .ZIGBEE2MQTT_CONFIG_ADVANCED_NETWORK_KEY }}" | ||
# Mosquitto | ||
ZIGBEE2MQTT_CONFIG_MQTT_USER: "{{ .MQTT_USERNAME }}" | ||
ZIGBEE2MQTT_CONFIG_MQTT_PASSWORD: "{{ .MQTT_PASSWORD }}" | ||
refreshInterval: 1h | ||
data: | ||
- secretKey: z2m_ext_pan_id | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-fields | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 2b8799c5-7d83-42aa-99c9-b072001ee0f3 | ||
property: z2m_ext_pan_id | ||
- secretKey: z2m_pan_id | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-fields | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 2b8799c5-7d83-42aa-99c9-b072001ee0f3 | ||
property: z2m_pan_id | ||
- secretKey: z2m_network_key | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-fields | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 2b8799c5-7d83-42aa-99c9-b072001ee0f3 | ||
property: z2m_network_key | ||
- secretKey: MQTT_USERNAME | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-login | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 2b8799c5-7d83-42aa-99c9-b072001ee0f3 | ||
property: username | ||
- secretKey: MQTT_PASSWORD | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-login | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 2b8799c5-7d83-42aa-99c9-b072001ee0f3 | ||
property: password | ||
dataFrom: | ||
- extract: | ||
key: mqtt | ||
- extract: | ||
key: zigbee2mqtt |
49 changes: 15 additions & 34 deletions
49
kubernetes/pi/apps/observability/kube-prometheus-stack/app/externalsecret.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 |
---|---|---|
@@ -1,46 +1,27 @@ | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: kube-prometheus-stack | ||
name: &name thanos-objstore-secret | ||
spec: | ||
secretStoreRef: | ||
name: bitwarden-secrets-manager | ||
kind: ClusterSecretStore | ||
target: | ||
deletionPolicy: Delete | ||
name: *name | ||
template: | ||
metadata: | ||
labels: | ||
cnpg.io/reload: "true" | ||
type: Opaque | ||
engineVersion: v2 | ||
data: | ||
objstore.yml: |- | ||
type: s3 | ||
config: | ||
bucket: thanos | ||
endpoint: rook-ceph-rgw.{{ .PRIMARY_DOMAIN }} | ||
access_key: {{ .AWS_ACCESS_KEY_ID }} | ||
bucket: thanos | ||
endpoint: rook-ceph-rgw.${PRIMARY_DOMAIN} | ||
insecure: true | ||
region: "" | ||
secret_key: {{ .AWS_SECRET_ACCESS_KEY }} | ||
data: | ||
- secretKey: PRIMARY_DOMAIN | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-fields | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 136c1200-904a-4e3c-bd02-ac6e00f706e3 | ||
property: primary_domain | ||
- secretKey: AWS_ACCESS_KEY_ID | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-login | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 3090e4fa-d3d9-44b6-ba53-b1060124db27 | ||
property: username | ||
- secretKey: AWS_SECRET_ACCESS_KEY | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-login | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 3090e4fa-d3d9-44b6-ba53-b1060124db27 | ||
property: password | ||
type: s3 | ||
dataFrom: | ||
- extract: | ||
key: thanos |
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
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 |
---|---|---|
@@ -1,31 +1,21 @@ | ||
--- | ||
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: "minio" | ||
name: &name minio | ||
spec: | ||
secretStoreRef: | ||
name: bitwarden-secrets-manager | ||
kind: ClusterSecretStore | ||
target: | ||
deletionPolicy: Delete | ||
name: *name | ||
template: | ||
type: Opaque | ||
engineVersion: v2 | ||
data: | ||
# App | ||
MINIO_ROOT_USER: "{{ .MINIO_ROOT_USER }}" | ||
MINIO_ROOT_PASSWORD: "{{ .MINIO_ROOT_PASSWORD }}" | ||
data: | ||
- secretKey: MINIO_ROOT_USER | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-login | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 5a98804c-6c54-4e09-817e-afd8012c70ad | ||
property: username | ||
- secretKey: MINIO_ROOT_PASSWORD | ||
sourceRef: | ||
storeRef: | ||
name: bitwarden-login | ||
kind: ClusterSecretStore | ||
remoteRef: | ||
key: 5a98804c-6c54-4e09-817e-afd8012c70ad | ||
property: password | ||
dataFrom: | ||
- extract: | ||
key: minio |
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
Oops, something went wrong.