Browse Source

HUE-9094 [k8s] Rename gethue-docs service to docs

Romain 6 years ago
parent
commit
3c2354b676

+ 1 - 1
tools/kubernetes/helm/hue/templates/ingress-https.yaml

@@ -24,5 +24,5 @@ spec:
   tls:
   - hosts:
     - {{ .Values.ingress.domain }}
-    secretName: letsencrypt-hue-prod
+    secretName: letsencrypt-prod
 {{- end -}}

+ 1 - 1
tools/kubernetes/helm/website/templates/NOTES.txt

@@ -21,7 +21,7 @@ Run below commands to get the recommended URLs:
 {{ else }}
 
   export WEBSITE_PORT=$(kubectl get service gethue-website -o jsonpath="{.spec.ports[*].nodePort}" --namespace {{ .Release.Namespace }})
-  export DOCS_PORT=$(kubectl get service gethue-docs -o jsonpath="{.spec.ports[*].nodePort}" --namespace {{ .Release.Namespace }})
+  export DOCS_PORT=$(kubectl get service docs -o jsonpath="{.spec.ports[*].nodePort}" --namespace {{ .Release.Namespace }})
 
   echo http://$WEB_HOST:$WEBSITE_PORT
   echo http://$WEB_HOST:$DOCS_PORT

+ 5 - 5
tools/kubernetes/helm/website/templates/deployment-docs.gethue.yaml

@@ -2,21 +2,21 @@
 apiVersion: apps/v1
 kind: Deployment
 metadata:
-  name: gethue-docs
+  name: docs
   labels:
-    deployment: gethue-docs
+    deployment: docs
 spec:
   selector:
     matchLabels:
-      pod: gethue-docs
+      pod: docs
   replicas: 1
   template:
     metadata:
       labels:
-        pod: gethue-docs
+        pod: docs
     spec:
       containers:
-      - name: gethue-docs
+      - name: docs
         image: {{ .Values.image.registry }}/documentation:{{ .Values.image.tag }}
         imagePullPolicy: {{ .Values.image.pullPolicy }}
         ports:

+ 1 - 1
tools/kubernetes/helm/website/templates/ingress-http.yaml

@@ -16,7 +16,7 @@ spec:
     http:
       paths:
       - backend:
-          serviceName: gethue-docs
+          serviceName: docs
           servicePort: 80
         path: /
   {{ end }}

+ 1 - 1
tools/kubernetes/helm/website/templates/ingress-https.yaml

@@ -19,7 +19,7 @@ spec:
     http:
       paths:
       - backend:
-          serviceName: gethue-docs
+          serviceName: docs
           servicePort: 80
         path: /
   {{ end }}

+ 4 - 4
tools/kubernetes/helm/website/templates/service-docs.gethue.yaml

@@ -2,14 +2,14 @@
 apiVersion: v1
 kind: Service
 metadata:
-  name: gethue-docs
+  name: docs
   labels:
-    pod: gethue-docs
+    pod: docs
 spec:
   selector:
-    pod: gethue-docs
+    pod: docs
   ports:
-  - name: gethue-docs
+  - name: docs
     port: 9001
     targetPort: 80
   type: NodePort

+ 4 - 4
tools/kubernetes/helm/website/values.yaml

@@ -5,14 +5,14 @@ image:
    # registry: "gethue"
    # tag: "latest"
    # pullPolicy: "IfNotPresent"
-docs:
-  enabled: true
-  replicas: 1
-  domain: "docs.gethue.com"
 website:
   enabled: true
   replicas: 1
   domain: "gethue.com"
+docs:
+  enabled: true
+  replicas: 1
+  domain: "docs.gethue.com"
 monitoring:
   enabled: false
 ingress: