Enable hostNetwork for person-detection app
Change-Id: Ib8a5bf675a8c984c6645e2991abe57a2f0a00857
diff --git a/apps/person-detection-app/templates/deployment.yaml b/apps/person-detection-app/templates/deployment.yaml
index 09058d2..71a7f8d 100644
--- a/apps/person-detection-app/templates/deployment.yaml
+++ b/apps/person-detection-app/templates/deployment.yaml
@@ -33,6 +33,8 @@
serviceAccountName: {{ include "person-detection-app.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
+ hostNetwork: true
+ dnsPolicy: ClusterFirstWithHostNet
containers:
- name: {{ .Chart.Name }}
securityContext:
@@ -47,12 +49,12 @@
- name: ROCUSER
valueFrom:
secretKeyRef:
- name: rocsecret
+ name: {{ .Values.rocSecret }}
key: username
- name: ROCPASSWORD
valueFrom:
secretKeyRef:
- name: rocsecret
+ name: {{ .Values.rocSecret }}
key: password
- name: ROCURL
value: {{ .Values.rocUrl }}