moved node/pod-selector to components
This commit is contained in:
parent
7b983ceb14
commit
4f72173df7
@ -1,6 +1,9 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
components:
|
||||
- ../../components/local-region-selector.yaml
|
||||
|
||||
namespace: adguard
|
||||
|
||||
resources:
|
||||
@ -10,8 +13,3 @@ resources:
|
||||
- base/adguard-namespace.yaml
|
||||
# - base/adguard-pvc.yaml
|
||||
- base/adguard-service.yaml
|
||||
|
||||
patches:
|
||||
- path: patches/nodeselector.yaml
|
||||
target:
|
||||
kind: (StatefulSet|Deployment|Job)
|
@ -10,7 +10,5 @@ resources:
|
||||
# - base/gitea-data-pvc.yaml
|
||||
- base/gitea-namespace.yaml
|
||||
|
||||
patches:
|
||||
- path: patches/nodeselector.yaml
|
||||
target:
|
||||
kind: (StatefulSet|Deployment|Job)
|
||||
components:
|
||||
- ../../components/local-region-selector.yaml
|
@ -13,6 +13,6 @@ resources:
|
||||
patches:
|
||||
- path: patches/dashboard-insecure-access.yaml
|
||||
- path: patches/dashboard-insecure-service.yaml
|
||||
- path: patches/nodeselector.yaml
|
||||
target:
|
||||
kind: (StatefulSet|Deployment|Job)
|
||||
|
||||
components:
|
||||
- ../../components/local-region-selector.yaml
|
@ -5,3 +5,6 @@ namespace: nextcloud
|
||||
|
||||
resources:
|
||||
- base
|
||||
|
||||
components:
|
||||
- ../../components/local-region-selector.yaml
|
@ -16,7 +16,5 @@ helmCharts:
|
||||
valuesFile: base/values.yaml
|
||||
releaseName: lcl
|
||||
|
||||
patches:
|
||||
- path: patches/nodeselector.yaml
|
||||
target:
|
||||
kind: (StatefulSet|Deployment|Job)
|
||||
components:
|
||||
- ../../components/local-region-selector.yaml
|
||||
|
@ -1,9 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: local
|
@ -14,3 +14,6 @@ resources:
|
||||
- base/webserver-service.yaml
|
||||
- base/webserver.yaml
|
||||
- base/paperless-namespace.yaml
|
||||
|
||||
components:
|
||||
- ../../components/local-region-selector.yaml
|
||||
|
@ -11,7 +11,5 @@ resources:
|
||||
- base/vaultwarden-secret-sealed.yaml
|
||||
- base/vaultwarden-service.yaml
|
||||
|
||||
patches:
|
||||
- path: patches/nodeselector.yaml
|
||||
target:
|
||||
kind: (StatefulSet|Deployment|Job)
|
||||
components:
|
||||
- ../../components/local-region-selector.yaml
|
@ -1,9 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: local
|
@ -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
|
11
components/local-region-selector.yaml/kustomization.yaml
Normal file
11
components/local-region-selector.yaml/kustomization.yaml
Normal 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
|
@ -3,7 +3,5 @@ kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: local
|
@ -3,6 +3,9 @@ kind: Kustomization
|
||||
|
||||
namespace: argocd
|
||||
|
||||
components:
|
||||
- ../../components/local-region-selector.yaml
|
||||
|
||||
resources:
|
||||
# Base functionality
|
||||
- base/argo-cd-k-with-helm.yaml
|
||||
@ -13,6 +16,3 @@ patches:
|
||||
- path: patches/argocd-server-service.yaml
|
||||
- path: patches/argocd-cm-patch.yaml
|
||||
- path: patches/argocd-cmd-params-cm.yaml
|
||||
- path: patches/nodeselector.yaml
|
||||
target:
|
||||
kind: (StatefulSet|Deployment|Job)
|
||||
|
@ -1,9 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: local
|
@ -5,6 +5,9 @@ namespace: traefik
|
||||
|
||||
namePrefix: front-
|
||||
|
||||
components:
|
||||
- ../../components/front-region-selector.yaml
|
||||
|
||||
resources:
|
||||
- ../base
|
||||
|
||||
@ -12,6 +15,3 @@ resources:
|
||||
patches:
|
||||
- path: patches/traefik-service-patch.yaml
|
||||
- path: patches/traefik-deployment-patch.yaml
|
||||
- path: patches/nodeselector.yaml
|
||||
target:
|
||||
kind: (StatefulSet|Deployment|Job)
|
@ -1,9 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: front
|
@ -5,12 +5,12 @@ namespace: traefik
|
||||
|
||||
namePrefix: local-
|
||||
|
||||
components:
|
||||
- ../../components/local-region-selector.yaml
|
||||
|
||||
resources:
|
||||
- traefik-ingress-dashboard-local.yaml
|
||||
- ../base
|
||||
|
||||
patches:
|
||||
- path: patches/traefik-service-patch.yaml
|
||||
- path: patches/nodeselector.yaml
|
||||
target:
|
||||
kind: (StatefulSet|Deployment|Job)
|
@ -1,9 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: local
|
@ -3,6 +3,9 @@ kind: Kustomization
|
||||
|
||||
namespace: longhorn-system
|
||||
|
||||
components:
|
||||
- ../../components/local-region-selector.yaml
|
||||
|
||||
resources:
|
||||
- base/longhorn-ui-ingress.yaml
|
||||
|
||||
@ -12,12 +15,3 @@ helmCharts:
|
||||
version: 1.6.0
|
||||
repo: https://charts.longhorn.io
|
||||
valuesFile: base/values.yaml
|
||||
|
||||
patches:
|
||||
- path: patches/nodeselector.yaml
|
||||
target:
|
||||
kind: (StatefulSet|Deployment|Job)
|
||||
- path: patches/podselector.yaml
|
||||
target:
|
||||
kind: Pod
|
||||
|
||||
|
@ -1,9 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: local
|
Loading…
x
Reference in New Issue
Block a user