moved node/pod-selector to components

This commit is contained in:
Steffen Illium 2024-04-04 08:00:25 +02:00
parent 7b983ceb14
commit 4f72173df7
23 changed files with 54 additions and 96 deletions

View File

@ -1,6 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
components:
- ../../components/local-region-selector.yaml
namespace: adguard namespace: adguard
resources: resources:
@ -10,8 +13,3 @@ resources:
- base/adguard-namespace.yaml - base/adguard-namespace.yaml
# - base/adguard-pvc.yaml # - base/adguard-pvc.yaml
- base/adguard-service.yaml - base/adguard-service.yaml
patches:
- path: patches/nodeselector.yaml
target:
kind: (StatefulSet|Deployment|Job)

View File

@ -10,7 +10,5 @@ resources:
# - base/gitea-data-pvc.yaml # - base/gitea-data-pvc.yaml
- base/gitea-namespace.yaml - base/gitea-namespace.yaml
patches: components:
- path: patches/nodeselector.yaml - ../../components/local-region-selector.yaml
target:
kind: (StatefulSet|Deployment|Job)

View File

@ -13,6 +13,6 @@ resources:
patches: patches:
- path: patches/dashboard-insecure-access.yaml - path: patches/dashboard-insecure-access.yaml
- path: patches/dashboard-insecure-service.yaml - path: patches/dashboard-insecure-service.yaml
- path: patches/nodeselector.yaml
target: components:
kind: (StatefulSet|Deployment|Job) - ../../components/local-region-selector.yaml

View File

@ -5,3 +5,6 @@ namespace: nextcloud
resources: resources:
- base - base
components:
- ../../components/local-region-selector.yaml

View File

@ -16,7 +16,5 @@ helmCharts:
valuesFile: base/values.yaml valuesFile: base/values.yaml
releaseName: lcl releaseName: lcl
patches: components:
- path: patches/nodeselector.yaml - ../../components/local-region-selector.yaml
target:
kind: (StatefulSet|Deployment|Job)

View File

@ -1,9 +0,0 @@
apiVersion: apps/v1
kind: not-important
metadata:
name: not-important
spec:
template:
spec:
nodeSelector:
region: local

View File

@ -14,3 +14,6 @@ resources:
- base/webserver-service.yaml - base/webserver-service.yaml
- base/webserver.yaml - base/webserver.yaml
- base/paperless-namespace.yaml - base/paperless-namespace.yaml
components:
- ../../components/local-region-selector.yaml

View File

@ -11,7 +11,5 @@ resources:
- base/vaultwarden-secret-sealed.yaml - base/vaultwarden-secret-sealed.yaml
- base/vaultwarden-service.yaml - base/vaultwarden-service.yaml
patches: components:
- path: patches/nodeselector.yaml - ../../components/local-region-selector.yaml
target:
kind: (StatefulSet|Deployment|Job)

View File

@ -1,9 +0,0 @@
apiVersion: apps/v1
kind: not-important
metadata:
name: not-important
spec:
template:
spec:
nodeSelector:
region: local

View File

@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
patches:
- path: nodeselector.yaml
target:
kind: (StatefulSet|Deployment|Job)
- path: podselector.yaml
target:
kind: Pod

View File

@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
patches:
- path: nodeselector.yaml
target:
kind: (StatefulSet|Deployment|Job)
- path: podselector.yaml
target:
kind: Pod

View File

@ -3,7 +3,5 @@ kind: not-important
metadata: metadata:
name: not-important name: not-important
spec: spec:
template: nodeSelector:
spec: region: local
nodeSelector:
region: local

View File

@ -3,6 +3,9 @@ kind: Kustomization
namespace: argocd namespace: argocd
components:
- ../../components/local-region-selector.yaml
resources: resources:
# Base functionality # Base functionality
- base/argo-cd-k-with-helm.yaml - base/argo-cd-k-with-helm.yaml
@ -13,6 +16,3 @@ patches:
- path: patches/argocd-server-service.yaml - path: patches/argocd-server-service.yaml
- path: patches/argocd-cm-patch.yaml - path: patches/argocd-cm-patch.yaml
- path: patches/argocd-cmd-params-cm.yaml - path: patches/argocd-cmd-params-cm.yaml
- path: patches/nodeselector.yaml
target:
kind: (StatefulSet|Deployment|Job)

View File

@ -1,9 +0,0 @@
apiVersion: apps/v1
kind: not-important
metadata:
name: not-important
spec:
template:
spec:
nodeSelector:
region: local

View File

@ -5,6 +5,9 @@ namespace: traefik
namePrefix: front- namePrefix: front-
components:
- ../../components/front-region-selector.yaml
resources: resources:
- ../base - ../base
@ -12,6 +15,3 @@ resources:
patches: patches:
- path: patches/traefik-service-patch.yaml - path: patches/traefik-service-patch.yaml
- path: patches/traefik-deployment-patch.yaml - path: patches/traefik-deployment-patch.yaml
- path: patches/nodeselector.yaml
target:
kind: (StatefulSet|Deployment|Job)

View File

@ -1,9 +0,0 @@
apiVersion: apps/v1
kind: not-important
metadata:
name: not-important
spec:
template:
spec:
nodeSelector:
region: front

View File

@ -5,12 +5,12 @@ namespace: traefik
namePrefix: local- namePrefix: local-
components:
- ../../components/local-region-selector.yaml
resources: resources:
- traefik-ingress-dashboard-local.yaml - traefik-ingress-dashboard-local.yaml
- ../base - ../base
patches: patches:
- path: patches/traefik-service-patch.yaml - path: patches/traefik-service-patch.yaml
- path: patches/nodeselector.yaml
target:
kind: (StatefulSet|Deployment|Job)

View File

@ -1,9 +0,0 @@
apiVersion: apps/v1
kind: not-important
metadata:
name: not-important
spec:
template:
spec:
nodeSelector:
region: local

View File

@ -3,6 +3,9 @@ kind: Kustomization
namespace: longhorn-system namespace: longhorn-system
components:
- ../../components/local-region-selector.yaml
resources: resources:
- base/longhorn-ui-ingress.yaml - base/longhorn-ui-ingress.yaml
@ -12,12 +15,3 @@ helmCharts:
version: 1.6.0 version: 1.6.0
repo: https://charts.longhorn.io repo: https://charts.longhorn.io
valuesFile: base/values.yaml valuesFile: base/values.yaml
patches:
- path: patches/nodeselector.yaml
target:
kind: (StatefulSet|Deployment|Job)
- path: patches/podselector.yaml
target:
kind: Pod

View File

@ -1,9 +0,0 @@
apiVersion: apps/v1
kind: not-important
metadata:
name: not-important
spec:
template:
spec:
nodeSelector:
region: local