blob: a6e8125a1eaeed54a57b2c79bbe90fc27b963d7b [file] [log] [blame]
#{{ if not .Values.disableVfcVfcResmgr }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: vfc-resmgr
namespace: "{{ .Values.nsPrefix }}"
spec:
replicas: {{ .Values.resmgr.replicas }}
selector:
matchLabels:
app: vfc-resmgr
template:
metadata:
labels:
app: vfc-resmgr
name: vfc-resmgr
spec:
hostname: vfc-resmgr
containers:
- args:
image: {{.Values.resmgr.image}}
name: "vfc-resmgr"
env:
- name: MSB_ADDR
value: {{ tpl .Values.msbaddr . }}
ports:
- containerPort: {{ .Values.resmgr.port }}
readinessProbe:
tcpSocket:
port: {{ .Values.resmgr.port }}
initialDelaySeconds: 5
periodSeconds: 10
imagePullPolicy: "{{ .Values.pullPolicy }}"
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
#{{ end }}