Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to configure UAA settings when deploying UI through helm chart #1315

Merged
merged 2 commits into from
Oct 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions deploy/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,30 @@ To login use the following credentials detailed [here](../../docs/access.md).

> Note: For some environments like Minikube, you are not given an IP Address - it may show as `<nodes>`. In this case, run `kubectl cluster-info` and use the IP address of your node shown in the output of this command.
## Specifying UAA configuration

When deploying with SCF, the `scf-config-values.yaml` (see [SCF Wiki link](https://github.com/SUSE/scf/wiki/How-to-Install-SCF#configuring-the-deployment)) can be supplied when installing Stratos UI.
```
$ helm install stratos-ui/console -f scf-config-values.yaml
```

Alternatively, you can supply the following configuration. Edit according to your environment and save to a file called `uaa-config.yaml`.
```
uaa:
protocol: https://
port: 2793
host: uaa.cf-dev.io
consoleClient: cf
consoleClientSecret:
consoleAdminIdentifier: cloud_controller.admin
skipSSLValidation: false
```

To install stratos-ui with the above specified configuration:
```
$ helm install stratos-ui/console -f uaa-config.yaml
```

## UAA for Testing
A UAA Helm chart has been provided to quickly bring up an UAA instance for testing the console.

Expand Down
26 changes: 24 additions & 2 deletions deploy/kubernetes/console/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,10 @@ spec:
{{- end }}
{{- if not .Values.noShared }}
- image: {{.Values.dockerRegistry}}/{{.Values.dockerOrg}}/{{.Values.images.proxy}}:{{.Values.consoleVersion}}
name: proxy
{{- else }}
- image: {{.Values.dockerRegistry}}/{{.Values.dockerOrg}}/{{.Values.images.proxyNoShared}}:{{.Values.consoleVersion}}
name: proxy
{{- end }}
name: proxy
env:
- name: DB_USER
value: "{{ .Values.mariadb.mariadbUser }}"
Expand Down Expand Up @@ -175,6 +174,29 @@ spec:
{{- if .Values.socksProxy }}
value: {{.Values.socksProxy}}
{{- end }}
{{- if .Values.env.UAA_HOST }}
- name: UAA_ENDPOINT
value: https://scf.{{.Values.env.UAA_HOST}}:{{.Values.env.UAA_PORT}}
- name: CONSOLE_CLIENT
value: cf
- name: CONSOLE_CLIENT_SECRET
value: {{.Values.env.UAA_ADMIN_CLIENT_SECRET}}
- name: CONSOLE_ADMIN_SCOPE
value: cloud_controller.admin
- name: SKIP_SSL_VALIDATION
value: "true"
{{- else if .Values.uaa.host }}
- name: UAA_ENDPOINT
value: {{default "https://" .Values.uaa.protocol}}{{.Values.uaa.host}}:{{.Values.uaa.port}}
- name: CONSOLE_CLIENT
value: {{.Values.uaa.consoleClient}}
- name: CONSOLE_CLIENT_SECRET
value: {{.Values.uaa.consoleClientSecret}}
- name: CONSOLE_ADMIN_SCOPE
value: {{.Values.uaa.consoleAdminIdentifier}}
- name: SKIP_SSL_VALIDATION
value: {{default "true" .Values.uaa.skipSSLValidation | quote}}
{{- end }}
ports:
- containerPort: 3003
name: proxy
Expand Down
13 changes: 13 additions & 0 deletions deploy/kubernetes/console/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,16 @@ mariadb:
# storageClass: default
metrics:
enabled: false
uaa:
protocol: https://
port:
host:
consoleClient:
consoleClientSecret:
consoleAdminIdentifier:
skipSSLValidation: false
# SCF values compatability
env:
UAA_HOST:
UAA_ADMIN_CLIENT_SECRET:
UAA_PORT: