35 lines
519 B
YAML
35 lines
519 B
YAML
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: app
|
|
spec:
|
|
selector:
|
|
app: app
|
|
ports:
|
|
- port: 80
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: app
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: app
|
|
spec:
|
|
containers:
|
|
- name: app
|
|
command: [ "app" ]
|
|
image: "{{ .Values.app.repo }}:{{ .Values.app.tag }}"
|
|
imagePullPolicy: Always # while debugging
|
|
#imagePullPolicy: IfNotPresent
|
|
|