kube/testapp/api/api-v1.yaml
2019-08-07 00:42:25 +02:00

45 lines
789 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: testapp-api
labels:
app: testapp-api
version: v1
spec:
replicas: 1
selector:
matchLabels:
app: testapp-api
version: v1
template:
metadata:
labels:
app: testapp-api
version: v1
spec:
containers:
- name: testapp-api
image: 127.0.0.1:5000/testapp/api:v1
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 100m
memory: 64Mi
imagePullPolicy: Always
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: testapp-api
labels:
app: testapp-api
spec:
ports:
- port: 8080
name: http
selector:
app: testapp-api