Skip to content

Instantly share code, notes, and snippets.

@jkremser
Created April 24, 2026 15:37
Show Gist options
  • Select an option

  • Save jkremser/9ddc4f1af84688ef033de08d1ba4b3ec to your computer and use it in GitHub Desktop.

Select an option

Save jkremser/9ddc4f1af84688ef033de08d1ba4b3ec to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "857"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"dashboard-api-service","argocd.argoproj.io/instance":"dashboard-api-service-dev"},"name":"dashboard-api-service","namespace":"kedify"},"spec":{"replicas":3,"selector":{"matchLabels":{"app":"dashboard-api-service"}},"template":{"metadata":{"labels":{"app":"dashboard-api-service"}},"spec":{"affinity":{"podAntiAffinity":{"preferredDuringSchedulingIgnoredDuringExecution":[{"podAffinityTerm":{"labelSelector":{"matchExpressions":[{"key":"app","operator":"In","values":["dashboard-api-service"]}]},"topologyKey":"kubernetes.io/hostname"},"weight":100}]}},"containers":[{"args":["--pghost=127.0.0.1","--pguser=dashboard-service-account-dev@kedify-initial.iam","--pgdbname=kedify","--posthog-api-key=$(POSTHOG-API-KEY)","--default-keda-version=v2.19.0-1","--agent-image=ghcr.io/kedify/agent:v0.5.4","--default-http-addon-version=v0.11.0-8","--default-http-addon-chart-version=v0.11.1-1","--default-keda-chart-version=v2.19.0-1","--default-otel-addon-version=v0.1.3","--default-predictor-addon-version=v0.1.4","--jwt-signing-secret=$(JWT_SIGNING_SECRET)","--stripe-webhook-secret=$(STRIPE_WEBHOOK_SECRET)","--stripe-api-key=$(STRIPE_API_KEY)","--resend-api-key=$(RESEND_API_KEY)","--kedify-server-addr=kedify-proxy.api.dev.kedify.io:443","--mimir-url=http://prometheus-dev-server.observability.svc.cluster.local","--disable-cors-check","--disable-gcp-marketplace","--disable-resend"],"command":["/bin/dashboard-api-service"],"env":[{"name":"DEBUG_PAYLOADS","value":"true"},{"name":"KEDIFY_SERVER","value":"kedify-proxy:50052"},{"name":"POSTHOG-API-KEY","valueFrom":{"secretKeyRef":{"key":"posthog-api-key","name":"dashboard-api-service"}}},{"name":"STRIPE_API_KEY","valueFrom":{"secretKeyRef":{"key":"stripe-api-key","name":"dashboard-api-service"}}},{"name":"STRIPE_WEBHOOK_SECRET","valueFrom":{"secretKeyRef":{"key":"stripe-webhook-secret","name":"dashboard-api-service"}}},{"name":"JWT_SIGNING_SECRET","valueFrom":{"secretKeyRef":{"key":"jwt-signing-secret","name":"dashboard-api-service"}}},{"name":"AWS_REGION","value":"us-east-1"},{"name":"AWS_ACCESS_KEY_ID","valueFrom":{"secretKeyRef":{"key":"aws-access-key","name":"dashboard-api-service"}}},{"name":"AWS_SECRET_ACCESS_KEY","valueFrom":{"secretKeyRef":{"key":"aws-secret-access-key","name":"dashboard-api-service"}}},{"name":"RESEND_API_KEY","valueFrom":{"secretKeyRef":{"key":"resend-api-key","name":"dashboard-api-service"}}}],"image":"ghcr.io/kedify/dashboard-api-service:pr-439-4fc0bef3f417beb4015e3952cc0d6a7cfff68938","imagePullPolicy":"IfNotPresent","name":"dashboard-api-service","volumeMounts":[{"mountPath":"/gcp","name":"gcp-service-account","readOnly":true},{"mountPath":"/etc/tls-internal","name":"tls-certificate-internal","readOnly":true}]}],"initContainers":[{"args":["--private-ip","--structured-logs","--auto-iam-authn","kedify-initial:us-central1:kedify-backend-dev"],"image":"gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.8.0","imagePullPolicy":"IfNotPresent","name":"cloudsql-proxy","restartPolicy":"Always"}],"restartPolicy":"Always","serviceAccountName":"dashboard-api-service","volumes":[{"name":"gcp-service-account","secret":{"items":[{"key":"gcp-service-account.json","path":"service-account.json"}],"secretName":"dashboard-api-service"}},{"name":"tls-certificate-internal","secret":{"secretName":"kedify-proxy-internal-tls"}}]}}}}
creationTimestamp: "2024-03-14T14:48:04Z"
generation: 864
labels:
app: dashboard-api-service
argocd.argoproj.io/instance: dashboard-api-service-dev
name: dashboard-api-service
namespace: kedify
resourceVersion: "1777044660995791017"
uid: f9a717a0-67f6-4a2d-a130-1b6d5e96e6cc
spec:
progressDeadlineSeconds: 600
replicas: 3
revisionHistoryLimit: 10
selector:
matchLabels:
app: dashboard-api-service
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: dashboard-api-service
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- dashboard-api-service
topologyKey: kubernetes.io/hostname
weight: 100
containers:
- args:
- --pghost=127.0.0.1
- --pguser=dashboard-service-account-dev@kedify-initial.iam
- --pgdbname=kedify
- --posthog-api-key=$(POSTHOG-API-KEY)
- --default-keda-version=v2.19.0-1
- --agent-image=ghcr.io/kedify/agent:v0.5.4
- --default-http-addon-version=v0.11.0-8
- --default-http-addon-chart-version=v0.11.1-1
- --default-keda-chart-version=v2.19.0-1
- --default-otel-addon-version=v0.1.3
- --default-predictor-addon-version=v0.1.4
- --jwt-signing-secret=$(JWT_SIGNING_SECRET)
- --stripe-webhook-secret=$(STRIPE_WEBHOOK_SECRET)
- --stripe-api-key=$(STRIPE_API_KEY)
- --resend-api-key=$(RESEND_API_KEY)
- --kedify-server-addr=kedify-proxy.api.dev.kedify.io:443
- --mimir-url=http://prometheus-dev-server.observability.svc.cluster.local
- --disable-cors-check
- --disable-gcp-marketplace
- --disable-resend
command:
- /bin/dashboard-api-service
env:
- name: DEBUG_PAYLOADS
value: "true"
- name: DEBUG_PAYLOAD_LISTS
value: "false"
- name: KEDIFY_SERVER
value: kedify-proxy:50052
- name: DEBUG_SAVINGS
value: "true"
- name: GIN_MODE
value: debug
- name: POSTHOG-API-KEY
valueFrom:
secretKeyRef:
key: posthog-api-key
name: dashboard-api-service
- name: STRIPE_API_KEY
valueFrom:
secretKeyRef:
key: stripe-api-key
name: dashboard-api-service
- name: STRIPE_WEBHOOK_SECRET
valueFrom:
secretKeyRef:
key: stripe-webhook-secret
name: dashboard-api-service
- name: JWT_SIGNING_SECRET
valueFrom:
secretKeyRef:
key: jwt-signing-secret
name: dashboard-api-service
- name: AWS_REGION
value: us-east-1
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
key: aws-access-key
name: dashboard-api-service
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
key: aws-secret-access-key
name: dashboard-api-service
- name: RESEND_API_KEY
valueFrom:
secretKeyRef:
key: resend-api-key
name: dashboard-api-service
- name: HELM_REPOSITORY_CONFIG
value: /helm/charts/repositories.yaml
- name: HELM_REPOSITORY_CACHE
value: /helm/charts
image: ghcr.io/kedify/dashboard-api-service:pr-439-4fc0bef3f417beb4015e3952cc0d6a7cfff68938
imagePullPolicy: IfNotPresent
name: dashboard-api-service
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /gcp
name: gcp-service-account
readOnly: true
- mountPath: /etc/tls-internal
name: tls-certificate-internal
readOnly: true
dnsPolicy: ClusterFirst
initContainers:
- args:
- --private-ip
- --structured-logs
- --auto-iam-authn
- kedify-initial:us-central1:kedify-backend-dev
env:
- name: DEBUG_PAYLOAD_LISTS
value: "false"
- name: DEBUG_PAYLOADS
value: "false"
- name: HELM_REPOSITORY_CONFIG
value: /helm/charts/repositories.yaml
- name: HELM_REPOSITORY_CACHE
value: /helm/charts
image: gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.8.0
imagePullPolicy: IfNotPresent
name: cloudsql-proxy
resources: {}
restartPolicy: Always
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: dashboard-api-service
serviceAccountName: dashboard-api-service
terminationGracePeriodSeconds: 30
volumes:
- name: gcp-service-account
secret:
defaultMode: 420
items:
- key: gcp-service-account.json
path: service-account.json
secretName: dashboard-api-service
- name: tls-certificate-internal
secret:
defaultMode: 420
secretName: kedify-proxy-internal-tls
status:
availableReplicas: 3
conditions:
- lastTransitionTime: "2026-04-23T22:32:35Z"
lastUpdateTime: "2026-04-23T22:32:35Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: "2025-12-29T18:04:47Z"
lastUpdateTime: "2026-04-24T15:31:00Z"
message: ReplicaSet "dashboard-api-service-5447cf5cc9" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 864
readyReplicas: 3
replicas: 3
updatedReplicas: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment