add debug pod
This commit is contained in:
parent
cb2c06743d
commit
a1178f70b6
|
@ -20,3 +20,22 @@ patches:
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/containers/0/env/-
|
path: /spec/template/spec/containers/0/env/-
|
||||||
value: {name: POSTGRES_HOST, value: postgres.databases}
|
value: {name: POSTGRES_HOST, value: postgres.databases}
|
||||||
|
- op: add
|
||||||
|
path: /spec/template/spec/containers/0/env/-
|
||||||
|
value: {name: POSTGRES_PORT, value: '5432'}
|
||||||
|
- target:
|
||||||
|
name: nocodelytics-debug
|
||||||
|
kind: Pod
|
||||||
|
patch: |-
|
||||||
|
- op: add
|
||||||
|
path: /spec/containers/0/env/-
|
||||||
|
value: {name: NATS_URL, value: http://nats.databases}
|
||||||
|
- op: add
|
||||||
|
path: /spec/containers/0/env/-
|
||||||
|
value: {name: CLICKHOUSE_HOST, value: http://clickhouse.databases:8123}
|
||||||
|
- op: add
|
||||||
|
path: /spec/containers/0/env/-
|
||||||
|
value: {name: POSTGRES_HOST, value: postgres.databases}
|
||||||
|
- op: add
|
||||||
|
path: /spec/containers/0/env/-
|
||||||
|
value: {name: POSTGRES_PORT, value: '5432'}
|
||||||
|
|
|
@ -70,18 +70,21 @@ spec:
|
||||||
domains:
|
domains:
|
||||||
- main: default.nocodelytics.com
|
- main: default.nocodelytics.com
|
||||||
---
|
---
|
||||||
# apiVersion: v1
|
apiVersion: v1
|
||||||
# kind: Pod
|
kind: Pod
|
||||||
# metadata:
|
metadata:
|
||||||
# name: nocodelytics-debug
|
name: nocodelytics-debug
|
||||||
# spec:
|
spec:
|
||||||
# containers:
|
containers:
|
||||||
# - name: nocodelytics-debug
|
- name: nocodelytics-debug
|
||||||
# image: container-registry.nocodelytics.com/nocodelytics:latest
|
image: container-registry.nocodelytics.com/nocodelytics:latest
|
||||||
# command: ["/bin/sh"]
|
command: ["/bin/sh"]
|
||||||
# args: ["-c", "while true; do sleep 30; done;"]
|
args: ["-c", "while true; do sleep 30; done;"]
|
||||||
# envFrom:
|
env:
|
||||||
# - secretRef:
|
- name: PORT
|
||||||
# name: secrets
|
value: "8080"
|
||||||
# ---
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: secrets
|
||||||
|
---
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,19 @@ patches:
|
||||||
target:
|
target:
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
name: default
|
name: default
|
||||||
|
- target:
|
||||||
|
name: nocodelytics-debug
|
||||||
|
kind: Pod
|
||||||
|
patch: |-
|
||||||
|
- op: add
|
||||||
|
path: /spec/containers/0/env/-
|
||||||
|
value: {name: NODE_ENV, value: production}
|
||||||
|
- op: add
|
||||||
|
path: /spec/containers/0/env/-
|
||||||
|
value: {name: CLICKHOUSE_DATABASE, value: nocodelytics_production}
|
||||||
|
- op: add
|
||||||
|
path: /spec/containers/0/env/-
|
||||||
|
value: {name: POSTGRES_DATABASE, value: nocodelytics_production}
|
||||||
- target:
|
- target:
|
||||||
group: apps
|
group: apps
|
||||||
version: v1
|
version: v1
|
||||||
|
|
Loading…
Reference in New Issue