-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from chrisburr/update-notes
Update NOTES
- Loading branch information
Showing
5 changed files
with
46 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,33 @@ | ||
1. Get the application URL by running these commands: | ||
{{- if .Values.ingress.enabled }} | ||
{{- range $host := .Values.ingress.hosts }} | ||
{{- range .paths }} | ||
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} | ||
{{- end }} | ||
{{- end }} | ||
{{- else if contains "NodePort" .Values.service.type }} | ||
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "diracx.fullname" . }}) | ||
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") | ||
echo http://$NODE_IP:$NODE_PORT | ||
{{- else if contains "LoadBalancer" .Values.service.type }} | ||
NOTE: It may take a few minutes for the LoadBalancer IP to be available. | ||
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "diracx.fullname" . }}' | ||
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "diracx.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") | ||
echo http://$SERVICE_IP:{{ .Values.service.port }} | ||
{{- else if contains "ClusterIP" .Values.service.type }} | ||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "diracx.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") | ||
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") | ||
echo "Visit http://127.0.0.1:8080 to use your application" | ||
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT | ||
{{- end }} | ||
{{- if .Values.developer.enabled }} | ||
|
||
🚧 Chart has been installed in developer mode. | ||
|
||
ℹ️ To interact with the cluster directly using kubectl/helm you'll need to set the | ||
first following environment variables: | ||
|
||
export KUBECONFIG={{ .Values.developer.demoDir }}/kube.conf | ||
export HELM_DATA_HOME={{ .Values.developer.demoDir }}/helm_data | ||
export PATH=\${PATH}:{{ .Values.developer.demoDir }} | ||
|
||
Then see the chart README for more information on how to use kubectl/helm. | ||
|
||
ℹ️ To use the demo with the DiracX client set: | ||
|
||
export DIRACX_URL={{ .Values.developer.urls.diracx }} | ||
|
||
ℹ️ To access the interactive API documentation visit: | ||
|
||
{{ .Values.developer.urls.diracx }}/docs | ||
|
||
ℹ️ When prompted to login the credentials are: | ||
|
||
Username: [email protected] | ||
Password: password | ||
|
||
{{ else }} | ||
|
||
Installed in chart production mode. | ||
|
||
TODO: Add notes... | ||
|
||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -234,6 +234,8 @@ fi | |
printf "%b Generating Helm templates\n" ${UNICORN_EMOJI} | ||
sed "s/{{ hostname }}/${machine_hostname}/g" "${script_dir}/demo/values.tpl.yaml" > "${demo_dir}/values.yaml" | ||
mv "${demo_dir}/values.yaml" "${demo_dir}/values.yaml.bak" | ||
sed "s@{{ demo_dir }}@${demo_dir}@g" "${demo_dir}/values.yaml.bak" > "${demo_dir}/values.yaml" | ||
mv "${demo_dir}/values.yaml" "${demo_dir}/values.yaml.bak" | ||
json="[" | ||
if [ ${#pkg_names[@]} -gt 0 ]; then | ||
for pkg_name in "${pkg_names[@]}"; do | ||
|
@@ -275,18 +277,6 @@ else | |
if "${demo_dir}/kubectl" wait --for=condition=ready pod --selector=app.kubernetes.io/name=diracx --timeout=300s; then | ||
printf "%b %b %b Pods are ready! %b %b %b\n" "${PARTY_EMOJI}" "${PARTY_EMOJI}" "${PARTY_EMOJI}" "${PARTY_EMOJI}" "${PARTY_EMOJI}" "${PARTY_EMOJI}" | ||
touch "${demo_dir}/.success" | ||
|
||
echo "" | ||
printf "%b To interact with the cluster:\n" "${INFO_EMOJI}" | ||
echo "export KUBECONFIG=${KUBECONFIG}" | ||
echo "export HELM_DATA_HOME=${HELM_DATA_HOME}" | ||
echo "export PATH=\${PATH}:${demo_dir}" | ||
echo "" | ||
printf "%b You can access swagger at http://%s:8000/docs\n" "${INFO_EMOJI}" "${machine_hostname}" | ||
echo "To login, use the OAuth Authroization Code flow, and enter the following credentials" | ||
echo "in the DEX web interface" | ||
echo "Username: [email protected]" | ||
echo "Password: password" | ||
else | ||
printf "%b Installation did not start sucessfully!\n" ${WARN_EMOJI} | ||
echo "Installation did not start sucessfully!" >> "${demo_dir}/.failed" | ||
|