diff --git a/.gitignore b/.gitignore index 51b09909..a48640c0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ coverage built/ .env .idea +configmap.yml diff --git a/infra/k8s/manifests/app-deployment.yml b/infra/k8s/manifests/app-deployment.yml new file mode 100644 index 00000000..10c72d8f --- /dev/null +++ b/infra/k8s/manifests/app-deployment.yml @@ -0,0 +1,29 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: jetdisc +spec: + replicas: 1 + selector: + matchLabels: + app: jetdisc + strategy: + type: Recreate + template: + metadata: + labels: + app: jetdisc + environment: production + version: "1.0.0" + spec: + containers: + - name: jetdisc + image: na2na/jetdisc:preview + envFrom: + - configMapRef: + name: jetdisc-config + resources: + limits: + cpu: 500m + memory: 256Mi + restartPolicy: Always diff --git a/infra/k8s/manifests/configmap.example.yml b/infra/k8s/manifests/configmap.example.yml new file mode 100644 index 00000000..03fce41b --- /dev/null +++ b/infra/k8s/manifests/configmap.example.yml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: jetdisc-config +data: + DISCORD_APP_TOKEN: "" + BOT_NAME: "2na2" + SET_COMMANDS_TARGET_SERVERS: ""