From 99bfb45aaeef7a3e10086e580c9908b18b1b0601 Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Wed, 1 Nov 2023 22:45:22 -0400 Subject: [PATCH] Add general API --- api/api-service.yaml | 15 +++++++++++ api/general-api/general-api-config-map.yaml | 0 api/general-api/general-api-deployment.yaml | 28 +++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 api/api-service.yaml create mode 100644 api/general-api/general-api-config-map.yaml create mode 100644 api/general-api/general-api-deployment.yaml diff --git a/api/api-service.yaml b/api/api-service.yaml new file mode 100644 index 0000000..d43a94b --- /dev/null +++ b/api/api-service.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Service +metadata: + name: api-service + namespace: api-ns +spec: + type: LoadBalancer + ports: + - name: general-api + port: 8080 + targetPort: 8080 + + selector: + app: api-apps + diff --git a/api/general-api/general-api-config-map.yaml b/api/general-api/general-api-config-map.yaml new file mode 100644 index 0000000..e69de29 diff --git a/api/general-api/general-api-deployment.yaml b/api/general-api/general-api-deployment.yaml new file mode 100644 index 0000000..5d88f01 --- /dev/null +++ b/api/general-api/general-api-deployment.yaml @@ -0,0 +1,28 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: general-api + namespace: api-ns + labels: + app: general-api +spec: + replicas: 1 + selector: + matchLabels: + app: api-apps + template: + metadata: + labels: + app: torrenter-apps + spec: + containers: + - name: general-api + image: git.clortox.com/tyler/general-api:latest + env: + - name: ACCESS_KEY + value: "FOO" + - name: SECRET_KEY + value: "FOO" + ports: + - containerPort: 8000 +