prepare prod deployment

This commit is contained in:
Florian Herrengt 2023-02-02 12:04:02 +00:00
parent 6d6d89d66d
commit e2ccc3c534
7 changed files with 7 additions and 17 deletions

View File

@ -1,3 +0,0 @@
- op: replace
path: /spec/template/spec/nodeSelector/kubernetes.io~1hostname
value: "primary-a"

View File

@ -1,10 +0,0 @@
apiVersion: kustomize.config.k8s.io/v1alpha1 # <-- Component notation
kind: Component
patchesJson6902:
- target:
group: apps
version: v1
kind: Deployment
name: nocodelytics-nats
path: deployment.yaml

View File

@ -5,7 +5,7 @@ patchesStrategicMerge:
- ./nocodelytics-dashboard.yaml
- ./nocodelytics-events-worker.yaml
- ./nocodelytics-tracker-api.yaml
- ./nats.yaml
# - ./nats.yaml
patches:
- target:
kind: Namespace

View File

@ -40,7 +40,7 @@ kind: Deployment
metadata:
name: nocodelytics-dashboard
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
ms: nocodelytics-dashboard

View File

@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: nocodelytics-events-worker
spec:
replicas: 4
replicas: 1
selector:
matchLabels:
ms: nocodelytics-events-worker

View File

@ -40,7 +40,7 @@ kind: Deployment
metadata:
name: nocodelytics-tracker-api
spec:
replicas: 1
replicas: 4
selector:
matchLabels:
ms: nocodelytics-tracker-api
@ -52,6 +52,8 @@ spec:
containers:
- name: nocodelytics-tracker-api
env:
- name: NODE_ENV
value: production
- name: NATS_URL
value: nocodelytics-nats.production.svc.cluster.local:4222
- name: NATS_PASSWORD

View File

@ -6,6 +6,7 @@ patchesStrategicMerge:
- ./nocodelytics-dashboard.yaml
- ./nocodelytics-tracker-api.yaml
- ./nocodelytics-events-worker.yaml
- ./nats.yaml
patches:
- target:
kind: Namespace