X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Finfrastructure%2Fsubcharts%2Fkong%2Ftemplates%2FNOTES.txt;h=ea035aafc48d4ec9468b2d06af29c55fd092ac82;hb=HEAD;hp=d7ee3f30771fcde5166ffa546a5caf2d11baecc2;hpb=7a43fbd4642448783aaf708d07ca883bf9bc5afd;p=ric-plt%2Fric-dep.git diff --git a/helm/infrastructure/subcharts/kong/templates/NOTES.txt b/helm/infrastructure/subcharts/kong/templates/NOTES.txt old mode 100755 new mode 100644 index d7ee3f3..ea035aa --- a/helm/infrastructure/subcharts/kong/templates/NOTES.txt +++ b/helm/infrastructure/subcharts/kong/templates/NOTES.txt @@ -1,16 +1,42 @@ -To connect to Kong, please execute the following command +To connect to Kong, please execute the following commands: +{{ if contains "LoadBalancer" .Values.proxy.type }} +HOST=$(kubectl get svc --namespace {{ template "kong.namespace" . }} {{ template "kong.fullname" . }}-proxy -o jsonpath='{.status.loadBalancer.ingress[0].ip}') +PORT=$(kubectl get svc --namespace {{ template "kong.namespace" . }} {{ template "kong.fullname" . }}-proxy -o jsonpath='{.spec.ports[0].port}') +{{ else if contains "NodePort" .Values.proxy.type }}HOST=$(kubectl get nodes --namespace {{ template "kong.namespace" . }} -o jsonpath='{.items[0].status.addresses[0].address}') +PORT=$(kubectl get svc --namespace {{ template "kong.namespace" . }} {{ template "kong.fullname" . }}-proxy -o jsonpath='{.spec.ports[0].nodePort}') +{{ end -}} +export PROXY_IP=${HOST}:${PORT} +curl $PROXY_IP + +Once installed, please follow along the getting started guide to start using +Kong: https://docs.konghq.com/kubernetes-ingress-controller/latest/guides/getting-started/ +{{ $warnings := list -}} -{{- if contains "LoadBalancer" .Values.proxy.type }} - HOST=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "kong.fullname" . }}-proxy -o jsonpath='{.status.loadBalancer.ingress[0].ip}') - PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "kong.fullname" . }}-proxy -o jsonpath='{.spec.ports[0].port}') -{{- else if contains "NodePort" .Values.proxy.type -}} - HOST=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath='{.items[0].status.addresses[0].address}') - PORT=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ template "kong.fullname" . }}-proxy -o jsonpath='{.spec.ports[0].nodePort}') +{{- if (hasKey .Values.ingressController "serviceAccount") -}} +{{- if (or (hasKey .Values.ingressController.serviceAccount "name") (hasKey .Values.ingressController.serviceAccount "annotations")) -}} +{{- $warnings = append $warnings "you have set either .ingressController.serviceAccount.name or .ingressController.serviceAccount.annotations. These settings have moved to .deployment.serviceAccount.name and .deployment.serviceAccount.annotations. You must move your configuration to the new location in values.yaml" -}} {{- end -}} -export PROXY_IP=${HOST}:${PORT} -curl $PROXY_IP +{{- end -}} + +{{- if and .Values.manager.enabled (or .Values.manager.http.enabled .Values.manager.tls.enabled) -}} +{{- if not (and .Values.admin.enabled (or .Values.admin.http.enabled .Values.admin.tls.enabled)) -}} +{{- $warnings = append $warnings "Kong Manager will not be functional because the Admin API is not enabled. Setting both .admin.enabled and .admin.http.enabled and/or .admin.tls.enabled to true to enable the Admin API over HTTP/TLS." -}} +{{- end -}} +{{- end -}} + +{{- include "kong.deprecation-warnings" $warnings -}} + +{{- if .Values.demo -}} + +############################################################################################# +##### WARNING: DEMO VALUES USED +############################################################################################# -Once installed, please follow along the getting started guide to start using Kong: -https://bit.ly/k4k8s-get-started +The values file used has been marked as a demo configuration. +It should NOT be used in production without comprehensive review of all settings provided. +############################################################################################# +##### WARNING: DEMO VALUES USED +############################################################################################# +{{- end -}} \ No newline at end of file