deploy: reusable config
This commit is contained in:
parent
f469418dcd
commit
7ef9218de9
|
@ -1,8 +1,9 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
namespace: source-system
|
namespace: source-system
|
||||||
namePrefix: source-
|
|
||||||
bases:
|
bases:
|
||||||
- ../crd
|
- ../crd
|
||||||
- ../rbac
|
- ../rbac
|
||||||
- ../manager
|
- ../manager
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
|
|
@ -3,4 +3,4 @@ kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
control-plane: controller
|
control-plane: controller
|
||||||
name: system
|
name: source-system
|
|
@ -1,8 +1,7 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: controller
|
name: source-controller
|
||||||
namespace: system
|
|
||||||
labels:
|
labels:
|
||||||
control-plane: controller
|
control-plane: controller
|
||||||
spec:
|
spec:
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- namespace.yaml
|
|
||||||
- service.yaml
|
- service.yaml
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
images:
|
images:
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: controller
|
name: source-controller
|
||||||
namespace: system
|
|
||||||
labels:
|
labels:
|
||||||
control-plane: controller
|
control-plane: controller
|
||||||
spec:
|
spec:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
namePrefix: source-
|
||||||
resources:
|
resources:
|
||||||
- role.yaml
|
- role.yaml
|
||||||
- role_binding.yaml
|
- role_binding.yaml
|
||||||
|
|
Loading…
Reference in New Issue