From 2645f87741a1d9267b645a7b2bba811eb5b68df0 Mon Sep 17 00:00:00 2001 From: Roxedus Date: Thu, 26 May 2022 00:51:09 +0200 Subject: [PATCH] first commit --- py-kms/py-kms-deployment.yaml | 27 +++++++++++++++++++++++++++ py-kms/py-kms-svc.yaml | 10 ++++++++++ 2 files changed, 37 insertions(+) create mode 100644 py-kms/py-kms-deployment.yaml create mode 100644 py-kms/py-kms-svc.yaml diff --git a/py-kms/py-kms-deployment.yaml b/py-kms/py-kms-deployment.yaml new file mode 100644 index 0000000..928c37f --- /dev/null +++ b/py-kms/py-kms-deployment.yaml @@ -0,0 +1,27 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: py-kms +spec: + replicas: 1 + revisionHistoryLimit: 3 + selector: + matchLabels: + app: py-kms + template: + metadata: + labels: + app: py-kms + spec: + containers: + - image: ghcr.io/thespad/py-kms + name: py-kms + resources: + limits: + cpu: "800m" + memory: "100Mi" + requests: + cpu: "300m" + memory: "40Mi" + ports: + - containerPort: 1688 diff --git a/py-kms/py-kms-svc.yaml b/py-kms/py-kms-svc.yaml new file mode 100644 index 0000000..c807c83 --- /dev/null +++ b/py-kms/py-kms-svc.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Service +metadata: + name: py-kms +spec: + ports: + - port: 1688 + targetPort: 1688 + selector: + app: py-kms