phase 2
This commit is contained in:
20
ctrl/k8s/overlays/cloud/kustomization.yaml
Normal file
20
ctrl/k8s/overlays/cloud/kustomization.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
|
||||
patches:
|
||||
# Gateway as cloud LoadBalancer
|
||||
- target:
|
||||
kind: Service
|
||||
name: gateway
|
||||
patch: |
|
||||
- op: replace
|
||||
path: /spec/type
|
||||
value: LoadBalancer
|
||||
- op: add
|
||||
path: /metadata/annotations
|
||||
value:
|
||||
service.beta.kubernetes.io/aws-load-balancer-type: nlb
|
||||
service.beta.kubernetes.io/aws-load-balancer-scheme: internal
|
||||
30
ctrl/k8s/overlays/dev/kustomization.yaml
Normal file
30
ctrl/k8s/overlays/dev/kustomization.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
|
||||
patches:
|
||||
# Gateway as NodePort for local access
|
||||
- target:
|
||||
kind: Service
|
||||
name: gateway
|
||||
patch: |
|
||||
- op: replace
|
||||
path: /spec/type
|
||||
value: NodePort
|
||||
- op: add
|
||||
path: /spec/ports/0/nodePort
|
||||
value: 30080
|
||||
|
||||
# Redis as NodePort for redis-cli access from host
|
||||
- target:
|
||||
kind: Service
|
||||
name: redis
|
||||
patch: |
|
||||
- op: replace
|
||||
path: /spec/type
|
||||
value: NodePort
|
||||
- op: add
|
||||
path: /spec/ports/0/nodePort
|
||||
value: 30379
|
||||
15
ctrl/k8s/overlays/onprem/kustomization.yaml
Normal file
15
ctrl/k8s/overlays/onprem/kustomization.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- ../../base
|
||||
|
||||
patches:
|
||||
# Gateway as LoadBalancer — MetalLB assigns a LAN IP
|
||||
- target:
|
||||
kind: Service
|
||||
name: gateway
|
||||
patch: |
|
||||
- op: replace
|
||||
path: /spec/type
|
||||
value: LoadBalancer
|
||||
Reference in New Issue
Block a user