🚑 fix weaveworks gitops

This commit is contained in:
auricom
2023-09-14 18:53:43 +02:00
parent d692ce456f
commit 2bdc0a928d
11 changed files with 42 additions and 52 deletions

View File

@@ -1,14 +1,13 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json # yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: default namespace: default
resources: resources:
- ./externalsecret.yaml - ./externalsecret.yaml
- ./gatus.yaml - ./gatus.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
- ./podmonitor.yaml - ./podmonitor.yaml
- ./volsync.yaml - ./volsync.yaml
- ./volume.yaml - ./volume.yaml
patchesStrategicMerge: patches:
- ./patches/addons.yaml - path: ./patches/addons.yaml

View File

@@ -1,13 +1,12 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json # yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: default namespace: default
resources: resources:
- ./gatus.yaml - ./gatus.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
- ./prometheusrule.yaml - ./prometheusrule.yaml
- ./volsync.yaml - ./volsync.yaml
- ./volume.yaml - ./volume.yaml
patchesStrategicMerge: patches:
- ./patches/exporter.yaml - path: ./patches/exporter.yaml

View File

@@ -2,19 +2,19 @@
apiVersion: external-secrets.io/v1beta1 apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret kind: ExternalSecret
metadata: metadata:
name: flux name: github-token
namespace: flux-system namespace: flux-system
spec: spec:
secretStoreRef: secretStoreRef:
kind: ClusterSecretStore kind: ClusterSecretStore
name: onepassword-connect name: onepassword-connect
target: target:
name: github-notification-token name: github-token-secret
creationPolicy: Owner creationPolicy: Owner
template: template:
engineVersion: v2 engineVersion: v2
data: data:
token: '{{ .GITHUB_NOTIFICATION_WEBHOOK_TOKEN }}' token: '{{ .GITHUB_NOTIFICATION_TOKEN }}'
dataFrom: dataFrom:
- extract: - extract:
key: weaveworks key: weaveworks

View File

@@ -1,6 +1,6 @@
--- ---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/provider_v1beta2.json # yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/provider_v1beta2.json
apiVersion: notification.toolkit.fluxcd.io/v1beta1 apiVersion: notification.toolkit.fluxcd.io/v1beta2
kind: Provider kind: Provider
metadata: metadata:
name: github name: github
@@ -9,10 +9,10 @@ spec:
type: github type: github
address: https://github.com/auricom/home-ops address: https://github.com/auricom/home-ops
secretRef: secretRef:
name: github-notification-token name: github-token-secret
--- ---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/alert_v1beta2.json # yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/alert_v1beta2.json
apiVersion: notification.toolkit.fluxcd.io/v1beta1 apiVersion: notification.toolkit.fluxcd.io/v1beta2
kind: Alert kind: Alert
metadata: metadata:
name: github name: github

View File

@@ -3,14 +3,14 @@
apiVersion: external-secrets.io/v1beta1 apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret kind: ExternalSecret
metadata: metadata:
name: flux name: github-webhook-token
namespace: flux-system namespace: flux-system
spec: spec:
secretStoreRef: secretStoreRef:
kind: ClusterSecretStore kind: ClusterSecretStore
name: onepassword-connect name: onepassword-connect
target: target:
name: flux-github-webhook-secret name: github-webhook-token-secret
creationPolicy: Owner creationPolicy: Owner
template: template:
engineVersion: v2 engineVersion: v2

View File

@@ -11,9 +11,9 @@ spec:
- ping - ping
- push - push
secretRef: secretRef:
name: flux-github-webhook-secret name: github-webhook-token-secret
resources: resources:
- apiVersion: source.toolkit.fluxcd.io/v1beta2 - apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository kind: GitRepository
name: home-ops-kubernetes name: home-ops-kubernetes
namespace: flux-system namespace: flux-system
@@ -21,14 +21,6 @@ spec:
kind: Kustomization kind: Kustomization
name: apps name: apps
namespace: flux-system namespace: flux-system
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
name: core
namespace: flux-system
- apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
name: base
namespace: flux-system
- apiVersion: kustomize.toolkit.fluxcd.io/v1 - apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization kind: Kustomization
name: flux-cluster name: flux-cluster

View File

@@ -15,7 +15,7 @@ spec:
template: template:
engineVersion: v2 engineVersion: v2
data: data:
adminPassword: "{{ .password }}" adminPassword: "{{ .GITOPS_PASSWORD_BCRYPT }}"
dataFrom: dataFrom:
- extract: - extract:
key: weaveworks key: weaveworks

View File

@@ -28,6 +28,8 @@ spec:
uninstall: uninstall:
keepHistory: false keepHistory: false
values: values:
annotations:
secret.reloader.stakater.com/reload: &secret weave-gitops-secret
adminUser: adminUser:
create: true create: true
username: admin username: admin
@@ -47,6 +49,6 @@ spec:
- *host - *host
valuesFrom: valuesFrom:
- kind: Secret - kind: Secret
name: weave-gitops-secret name: *secret
valuesKey: adminPassword valuesKey: adminPassword
targetPath: adminUser.passwordHash targetPath: adminUser.passwordHash

View File

@@ -1,16 +1,15 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json # yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: monitoring namespace: monitoring
resources: resources:
- ./secret.sops.yaml - ./secret.sops.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
patchesStrategicMerge:
- ./patches/geoip.yaml
configMapGenerator: configMapGenerator:
- name: vector-aggregator-configmap - files:
files:
- vector.yaml=./config/vector.yaml - vector.yaml=./config/vector.yaml
name: vector-aggregator-configmap
generatorOptions: generatorOptions:
disableNameSuffixHash: true disableNameSuffixHash: true
patches:
- path: ./patches/geoip.yaml

View File

@@ -178,7 +178,7 @@ spec:
valuesKey: GITEA_AWS_S3_SECRET_KEY valuesKey: GITEA_AWS_S3_SECRET_KEY
postRenderers: postRenderers:
- kustomize: - kustomize:
patchesStrategicMerge: patches:
- kind: Deployment - kind: Deployment
apiVersion: apps/v1 apiVersion: apps/v1
metadata: metadata:

View File

@@ -1,11 +1,10 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json # yaml-language-server: $schema=https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/kustomization.json
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
namespace: default namespace: default
resources: resources:
- ./externalbackup.yaml - ./externalbackup.yaml
- ./externalsecret.yaml - ./externalsecret.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
- ./volsync.yaml - ./volsync.yaml
- ./volume.yaml - ./volume.yaml