feat(dev): Rework environment configuration
This commit is contained in:
parent
eea09912d0
commit
f98ae20083
2
Makefile
2
Makefile
@ -1,4 +1,6 @@
|
||||
dev:
|
||||
kubectl taint nodes outsider type=services:NoSchedule --overwrite
|
||||
kubectl apply -k environments/dev/bootstrap --all
|
||||
kubectl apply -k environments/dev --prune=true --all
|
||||
|
||||
prod:
|
||||
|
18
environments/dev/bootstrap/kustomization.yaml
Normal file
18
environments/dev/bootstrap/kustomization.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
# MetalLB installation and configuration
|
||||
- https://raw.githubusercontent.com/metallb/metallb/v0.13.7/config/manifests/metallb-native.yaml
|
||||
# Traefik CRD
|
||||
- https://raw.githubusercontent.com/traefik/traefik/v2.9/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
|
||||
- https://raw.githubusercontent.com/traefik/traefik/v2.9/docs/content/reference/dynamic-configuration/kubernetes-crd-rbac.yml
|
||||
# Longhorn CRD
|
||||
- https://raw.githubusercontent.com/longhorn/longhorn/v1.5.2/deploy/longhorn.yaml
|
||||
# SOPS secrets operator CRDs
|
||||
- https://raw.githubusercontent.com/isindir/sops-secrets-operator/master/config/crd/bases/isindir.github.com_sopssecrets.yaml
|
||||
# Install CoudNativePG operator
|
||||
- https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-1.20/releases/cnpg-1.19.1.yaml
|
||||
|
||||
patchesStrategicMerge:
|
||||
- ./metallb-patch.yaml
|
13
environments/dev/bootstrap/metallb-patch.yaml
Normal file
13
environments/dev/bootstrap/metallb-patch.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: speaker
|
||||
namespace: metallb-system
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
tolerations:
|
||||
- key: "type"
|
||||
operator: "Equal"
|
||||
value: "services"
|
||||
effect: "NoSchedule"
|
@ -2,17 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
# Traefik CRD
|
||||
- https://raw.githubusercontent.com/traefik/traefik/v2.9/docs/content/reference/dynamic-configuration/kubernetes-crd-definition-v1.yml
|
||||
- https://raw.githubusercontent.com/traefik/traefik/v2.9/docs/content/reference/dynamic-configuration/kubernetes-crd-rbac.yml
|
||||
# MetalLB installation and configuration
|
||||
- https://raw.githubusercontent.com/metallb/metallb/v0.13.7/config/manifests/metallb-native.yaml
|
||||
# MetalLB configuration
|
||||
- ../../metallb
|
||||
# PostgreSQL operator and its UI
|
||||
- github.com/zalando/postgres-operator/manifests
|
||||
- github.com/zalando/postgres-operator/ui/manifests
|
||||
# SOPS secrets operator CRDs
|
||||
- https://raw.githubusercontent.com/isindir/sops-secrets-operator/master/config/crd/bases/isindir.github.com_sopssecrets.yaml
|
||||
# Miscellanous basic configuration
|
||||
- ../../res
|
||||
# NFS client configuration
|
||||
@ -29,5 +20,3 @@ resources:
|
||||
patchesStrategicMerge:
|
||||
#- ../../environments/dev/traefik-internal-service.yaml
|
||||
#- ../../environments/dev/traefik-external-service.yaml
|
||||
- ../../environments/dev/postgres-operator-patch.yaml
|
||||
- ../../environments/dev/metallb-patch.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user