Skip to content

Instantly share code, notes, and snippets.

@antonyc
Created May 3, 2022 14:41
Show Gist options
  • Save antonyc/4df0bcdc40acfe27b63ce7e66e9c40c1 to your computer and use it in GitHub Desktop.
Save antonyc/4df0bcdc40acfe27b63ce7e66e9c40c1 to your computer and use it in GitHub Desktop.
chapson quick paste
m ~/D/z/c/h/zenith-console git:(main) ✗ helm diff --debug upgrade zenith-console ./ --values values-stage.yaml
Executing helm version
Executing helm get manifest zenith-console --namespace default
Executing helm template zenith-console ./ --namespace default --values values-stage.yaml --validate --is-upgrade
Executing helm get hooks zenith-console --namespace default
default, zenith-console, Deployment (apps) has changed:
# Source: zenith-console/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: zenith-console
labels:
helm.sh/chart: zenith-console-0.1.1
app.kubernetes.io/name: zenith-console
app.kubernetes.io/instance: zenith-console
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: zenith-console
app.kubernetes.io/instance: zenith-console
template:
metadata:
annotations:
- rollout-trigger: "ztioZ"
+ rollout-trigger: "v7lub"
labels:
app.kubernetes.io/name: zenith-console
app.kubernetes.io/instance: zenith-console
app.kubernetes.io/component: zenith-console
zenith_env: staging
zenith_region: us-west-1
zenith_region_slug: virginia
zenith_service: console
spec:
imagePullSecrets:
- name: docker-hub-neon
serviceAccountName: zenith-console
securityContext:
{}
containers:
- name: zenith-console
securityContext:
{}
image: "neondatabase/console:latest"
imagePullPolicy: Always
envFrom:
- secretRef:
name: zenith-console-secret
- secretRef:
name: zenith-console-sentry
env:
- name: APP_VERSION
- value: "8ca611f"
+ value: "dev"
- name: SENTRY_RELEASE
- value: "console@8ca611f"
+ value: "console@dev"
+ - name: PSQL_PROXY_MGMT_ADDRESS
+ value: neon-proxy:7000
+ - name: PSQL_PROXY_DEFAULT_SIZE
+ value: d.container_micro
- name: GIN_MODE
value: release
ports:
- name: http
containerPort: 3000
protocol: TCP
- name: managementv2
containerPort: 9095
protocol: TCP
- name: publicv2
containerPort: 3005
protocol: TCP
- name: metrics
containerPort: 9090
protocol: TCP
startupProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 10
timeoutSeconds: 5
periodSeconds: 10
failureThreshold: 30
livenessProbe:
httpGet:
path: /healthz
port: http
periodSeconds: 15
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /healthz
port: http
periodSeconds: 15
timeoutSeconds: 10
resources:
{}
default, zenith-console-migrate, Job (batch) has changed:
# Source: zenith-console/templates/migrate.job.yaml
apiVersion: batch/v1
kind: Job
metadata:
name: zenith-console-migrate
labels:
helm.sh/chart: zenith-console-0.1.1
app.kubernetes.io/name: zenith-console
app.kubernetes.io/instance: zenith-console
app.kubernetes.io/version: "latest"
app.kubernetes.io/managed-by: Helm
zenith/component: zenith-console-migrate
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "0"
"helm.sh/hook-delete-policy": before-hook-creation
spec:
activeDeadlineSeconds: 600
backoffLimit: 0
parallelism: 1
ttlSecondsAfterFinished: 1200
template:
metadata:
name: zenith-console-migrate
labels:
app.kubernetes.io/name: zenith-console
app.kubernetes.io/instance: zenith-console
app.kubernetes.io/component: zenith-console-migrate
spec:
restartPolicy: Never
imagePullSecrets:
- name: docker-hub-neon
serviceAccountName: zenith-console
securityContext:
{}
containers:
- name: migrate
image: "neondatabase/console:migrations"
imagePullPolicy: Always
envFrom:
- secretRef:
name: zenith-console-secret
- secretRef:
name: zenith-console-sentry
env:
+ - name: PSQL_PROXY_MGMT_ADDRESS
+ value: neon-proxy:7000
+ - name: PSQL_PROXY_DEFAULT_SIZE
+ value: d.container_micro
- name: GIN_MODE
value: release
args:
- /bin/sh
- /scripts/migrations.sh
volumeMounts:
- name: scripts
mountPath: /scripts
volumes:
- name: scripts
configMap:
name: zenith-console
m ~/D/z/c/h/zenith-console git:(feature/secrets_should_be_secrets) ✗
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment