From 3fce69d95f21010c37043b89e83bc0db7e6e05af Mon Sep 17 00:00:00 2001 From: Alexander Goussas Date: Mon, 27 Apr 2026 21:29:51 -0500 Subject: [PATCH] add deployment for squad-rotation-bot --- k8s/squad-rotation-bot.yaml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 k8s/squad-rotation-bot.yaml diff --git a/k8s/squad-rotation-bot.yaml b/k8s/squad-rotation-bot.yaml new file mode 100644 index 0000000..6d19bb3 --- /dev/null +++ b/k8s/squad-rotation-bot.yaml @@ -0,0 +1,50 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: squad-rotation-bot +spec: + selector: + matchLabels: + app: squad-rotation-bot + replicas: 1 + template: + metadata: + labels: + app: squad-rotation-bot + spec: + containers: + - name: squad-rotation-bot + image: aloussase69/squad-rotation-bot:latest + ports: + - containerPort: 80 + env: + - name: WEB_HOOK_URL + valueFrom: + configMapKeyRef: + name: squad-rotation-config + key: web-hook-url +--- +apiVersion: v1 +kind: ConfigMap +metadata: + name: squad-rotation-config +data: + # You can replace this with envsubst + # ex: envsubst < squal-rotation-bot.yaml | kubectl apply -f - + web-hook-url: ${WEB_HOOK_URL} +--- +apiVersion: v1 +kind: Service +metadata: + name: squad-rotation-bot + labels: + app: squad-rotation-bot +spec: + type: NodePort + ports: + - port: 8080 # internal to the cluster + targetPort: 8080 # port to target on the Pod + protocol: TCP + name: http + selector: + app: squad-rotation-bot -- 2.43.0