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 +