moved node/pod-selector to components
This commit is contained in:
apps
adguard
gitea
kube-dashboard
newcloud
nextcloud
paperless
vaultwarden
components
front-region-selector.yaml copy
local-region-selector.yaml
infrastructure
02-argocd
03-traefik
overlay-external
overlay-internal
04-longhorn
@ -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
|
@ -0,0 +1,9 @@
|
||||
apiVersion: apps/v1
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: local
|
@ -0,0 +1,7 @@
|
||||
apiVersion: apps/v1
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: local
|
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
|
9
components/local-region-selector.yaml/nodeselector.yaml
Normal file
9
components/local-region-selector.yaml/nodeselector.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
apiVersion: apps/v1
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: local
|
7
components/local-region-selector.yaml/podselector.yaml
Normal file
7
components/local-region-selector.yaml/podselector.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: apps/v1
|
||||
kind: not-important
|
||||
metadata:
|
||||
name: not-important
|
||||
spec:
|
||||
nodeSelector:
|
||||
region: local
|
Reference in New Issue
Block a user