This commit is contained in:
parent
ae08e93303
commit
99bfb45aae
15
api/api-service.yaml
Normal file
15
api/api-service.yaml
Normal 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
|
||||||
|
|
0
api/general-api/general-api-config-map.yaml
Normal file
0
api/general-api/general-api-config-map.yaml
Normal file
28
api/general-api/general-api-deployment.yaml
Normal file
28
api/general-api/general-api-deployment.yaml
Normal 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user