EDGEPOD-114 Enhance CDN-local to better support of hostNetwork
Also renamed resouce names from nginx to cdn-local.
Change-Id: Ib77f18b8e8ea2efcb73c0d36a621bdee5eea2f33
diff --git a/ott-services/cdn-local/templates/service-nginx.yaml b/ott-services/cdn-local/templates/service-nginx.yaml
index a0422b4..448f1ae 100644
--- a/ott-services/cdn-local/templates/service-nginx.yaml
+++ b/ott-services/cdn-local/templates/service-nginx.yaml
@@ -18,12 +18,12 @@
apiVersion: v1
kind: Service
metadata:
- name: nginx
+ name: cdn-local
labels:
-{{ tuple "nginx" . | include "cdn-local.metadata_labels" | indent 4 }}
+{{ tuple "cdn-local" . | include "cdn-local.metadata_labels" | indent 4 }}
spec:
selector:
-{{ tuple "nginx" . | include "cdn-local.metadata_labels" | indent 4 }}
+{{ tuple "cdn-local" . | include "cdn-local.metadata_labels" | indent 4 }}
ports:
- name: http
port: {{ .Values.config.nginx.ports.http }}
@@ -36,12 +36,12 @@
apiVersion: v1
kind: Service
metadata:
- name: nginx-external
+ name: cdn-local-external
labels:
-{{ tuple "nginx" . | include "cdn-local.metadata_labels" | indent 4 }}
+{{ tuple "cdn-local" . | include "cdn-local.metadata_labels" | indent 4 }}
spec:
selector:
-{{ tuple "nginx" . | include "cdn-local.metadata_labels" | indent 4 }}
+{{ tuple "cdn-local" . | include "cdn-local.metadata_labels" | indent 4 }}
type: NodePort
ports:
- name: http
@@ -51,4 +51,4 @@
- name: rtmp
port: {{ .Values.config.nginx.ports.rtmp }}
protocol: TCP
- nodePort: {{ .Values.config.nginx.ports.nodePorts.rtmp }}
\ No newline at end of file
+ nodePort: {{ .Values.config.nginx.ports.nodePorts.rtmp }}