chore: Add talos upgrade
This commit is contained in:
parent
3a222fcc62
commit
111e6035ae
8
kubernetes/apps/system-upgrade/kustomization.yaml
Normal file
8
kubernetes/apps/system-upgrade/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: system-upgrade
|
||||
|
||||
resources:
|
||||
- ./namespace.yaml
|
||||
- ./tuppr/ks.yaml
|
||||
7
kubernetes/apps/system-upgrade/namespace.yaml
Normal file
7
kubernetes/apps/system-upgrade/namespace.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: _
|
||||
annotations:
|
||||
kustomize.toolkit.fluxcd.io/prune: disabled
|
||||
12
kubernetes/apps/system-upgrade/tuppr/app/helmrelease.yaml
Normal file
12
kubernetes/apps/system-upgrade/tuppr/app/helmrelease.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: tuppr
|
||||
spec:
|
||||
chartRef:
|
||||
kind: OCIRepository
|
||||
name: tuppr
|
||||
interval: 30m
|
||||
values:
|
||||
replicaCount: 2
|
||||
@ -0,0 +1,7 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./helmrelease.yaml
|
||||
- ./ocirepository.yaml
|
||||
12
kubernetes/apps/system-upgrade/tuppr/app/ocirepository.yaml
Normal file
12
kubernetes/apps/system-upgrade/tuppr/app/ocirepository.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: OCIRepository
|
||||
metadata:
|
||||
name: tuppr
|
||||
spec:
|
||||
interval: 15m
|
||||
layerSelector:
|
||||
mediaType: application/vnd.cncf.helm.chart.content.v1.tar+gzip
|
||||
operation: copy
|
||||
ref:
|
||||
tag: 0.0.52
|
||||
46
kubernetes/apps/system-upgrade/tuppr/ks.yaml
Normal file
46
kubernetes/apps/system-upgrade/tuppr/ks.yaml
Normal file
@ -0,0 +1,46 @@
|
||||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/refs/heads/main/kustomization-kustomize-v1.json
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: tuppr
|
||||
spec:
|
||||
commonMetadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: tuppr
|
||||
healthChecks:
|
||||
- apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
name: tuppr
|
||||
namespace: system-upgrade
|
||||
interval: 1h
|
||||
path: "./kubernetes/apps/system-upgrade/tuppr/app"
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
targetNamespace: system-upgrade
|
||||
timeout: 5m
|
||||
---
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/refs/heads/main/kustomization-kustomize-v1.json
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: tuppr-upgrades
|
||||
spec:
|
||||
commonMetadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: tuppr
|
||||
dependsOn:
|
||||
- name: tuppr
|
||||
interval: 1h
|
||||
path: "./kubernetes/apps/system-upgrade/tuppr/upgrades"
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
namespace: flux-system
|
||||
targetNamespace: system-upgrade
|
||||
timeout: 5m
|
||||
wait: false
|
||||
@ -0,0 +1,18 @@
|
||||
---
|
||||
apiVersion: tuppr.home-operations.com/v1alpha1
|
||||
kind: KubernetesUpgrade
|
||||
metadata:
|
||||
name: kubernetes
|
||||
spec:
|
||||
kubernetes:
|
||||
# renovate: datasource=docker depName=ghcr.io/siderolabs/kubelet
|
||||
version: v1.35.0
|
||||
healthChecks:
|
||||
- apiVersion: volsync.backube/v1alpha1
|
||||
kind: ReplicationSource
|
||||
expr: |-
|
||||
status.conditions.filter(c, c.type == "Synchronizing").all(c, c.status == "False")
|
||||
# - apiVersion: ceph.rook.io/v1
|
||||
# kind: CephCluster
|
||||
# expr: |-
|
||||
# status.ceph.health in ['HEALTH_OK']
|
||||
20
kubernetes/apps/system-upgrade/tuppr/upgrades/talos.yaml
Normal file
20
kubernetes/apps/system-upgrade/tuppr/upgrades/talos.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
apiVersion: tuppr.home-operations.com/v1alpha1
|
||||
kind: TalosUpgrade
|
||||
metadata:
|
||||
name: talos
|
||||
spec:
|
||||
talos:
|
||||
# renovate: datasource=docker depName=ghcr.io/siderolabs/installer
|
||||
version: v1.12.3
|
||||
policy:
|
||||
rebootMode: default
|
||||
healthChecks:
|
||||
- apiVersion: volsync.backube/v1alpha1
|
||||
kind: ReplicationSource
|
||||
expr: |-
|
||||
status.conditions.filter(c, c.type == "Synchronizing").all(c, c.status == "False")
|
||||
# - apiVersion: ceph.rook.io/v1
|
||||
# kind: CephCluster
|
||||
# expr: |-
|
||||
# status.ceph.health in ['HEALTH_OK']
|
||||
Loading…
Reference in New Issue
Block a user