generated from onedr0p/cluster-template
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/crunchy-pgo
- Loading branch information
Showing
176 changed files
with
1,647 additions
and
3,019 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
59 changes: 59 additions & 0 deletions
59
ansible/pi/playbooks/templates/kube-vip-static-pod.yaml.j2
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,59 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: kube-vip | ||
namespace: kube-system | ||
labels: | ||
app.kubernetes.io/instance: kube-vip | ||
app.kubernetes.io/name: kube-vip | ||
spec: | ||
containers: | ||
- name: kube-vip | ||
image: ghcr.io/kube-vip/kube-vip:v0.7.0 | ||
imagePullPolicy: IfNotPresent | ||
args: ["manager"] | ||
env: | ||
- name: address | ||
value: "{{ kube_vip_addr }}" | ||
- name: vip_arp | ||
value: "true" | ||
- name: lb_enable | ||
value: "false" | ||
- name: port | ||
value: "6443" | ||
- name: vip_cidr | ||
value: "32" | ||
- name: cp_enable | ||
value: "true" | ||
- name: cp_namespace | ||
value: kube-system | ||
- name: vip_ddns | ||
value: "false" | ||
- name: svc_enable | ||
value: "false" | ||
- name: vip_leaderelection | ||
value: "true" | ||
- name: vip_leaseduration | ||
value: "15" | ||
- name: vip_renewdeadline | ||
value: "10" | ||
- name: vip_retryperiod | ||
value: "2" | ||
- name: prometheus_server | ||
value: :2112 | ||
securityContext: | ||
capabilities: | ||
add: ["NET_ADMIN", "NET_RAW"] | ||
volumeMounts: | ||
- mountPath: /etc/kubernetes/admin.conf | ||
name: kubeconfig | ||
hostAliases: | ||
- hostnames: | ||
- kubernetes | ||
ip: 127.0.0.1 | ||
hostNetwork: true | ||
volumes: | ||
- name: kubeconfig | ||
hostPath: | ||
path: /etc/rancher/k3s/k3s.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
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,7 +1,7 @@ | ||
# Label control planes | ||
|
||
## NoSchedule | ||
kubectl taint nodes navia node-role.kubernetes.io/control-plane=true:PreferNoSchedule --context teyvat | ||
# kubectl taint nodes navia node-role.kubernetes.io/control-plane=true:PreferNoSchedule --context teyvat | ||
|
||
# Label workers | ||
kubectl label nodes ayaka eula ganyu hutao node-role.kubernetes.io/worker=true --context teyvat |
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
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
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 |
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
20 changes: 20 additions & 0 deletions
20
.../apps/external-secrets/external-secrets/bitwarden-secrets-manager/clustersecretstore.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,20 @@ | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ClusterSecretStore | ||
metadata: | ||
name: bitwarden-secrets-manager | ||
spec: | ||
provider: | ||
webhook: | ||
url: "http://bitwarden-secrets-manager.external-secrets.svc.cluster.local:5000/key/{{ .remoteRef.key }}" | ||
headers: | ||
Authorization: "Bearer {{ print .serviceaccount.token }}" | ||
# result: | ||
# jsonPath: "$.value.{{ .remoteRef.property }}" | ||
result: | ||
jsonPath: "$.value" | ||
secrets: | ||
- name: serviceaccount | ||
secretRef: | ||
name: bws-secret | ||
key: token | ||
namespace: external-secrets |
Oops, something went wrong.