-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.yaml
39 lines (39 loc) · 912 Bytes
/
manifest.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ .Release.Name }}-deployment
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.replicas }}
selector:
matchLabels:
app: {{ .Values.app }}
template:
metadata:
labels:
app: {{ .Values.app }}
spec:
containers:
- name: helmchart-demo-http
image: "{{ .Values.image.repo }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 8080
name: http
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-service
namespace: {{ .Release.Namespace }}
spec:
type: NodePort
ports:
- name: http
nodePort: 32020
port: {{ .Values.servicePort }}
targetPort: 8080
protocol: TCP
selector:
app: {{ .Values.app }}