Add general API
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2023-11-01 22:45:22 -04:00
parent ae08e93303
commit 99bfb45aae
3 changed files with 43 additions and 0 deletions

15
api/api-service.yaml Normal file
View File

@ -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

View File

@ -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