-
Notifications
You must be signed in to change notification settings - Fork 5
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 #62 from bcgov/feat/helmchart
feat: publish helm charts
- Loading branch information
Showing
20 changed files
with
153 additions
and
110 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
nodejs 14.14.0 | ||
python 3.8.6 | ||
kubectl 1.18.0 | ||
oc 4.7.5 | ||
helm 3.2.4 | ||
yarn 1.22.4 | ||
k6 0.34.1 | ||
|
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,5 +1,5 @@ | ||
apiVersion: v1 | ||
name: sso-keycloak | ||
version: 0.1.6 | ||
version: 0.1.7 | ||
appVersion: 0.1.0 | ||
description: Open Source Identity and Access Management For Modern Applications and Services |
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,70 +1,74 @@ | ||
# Keycloak Helm Chart | ||
# SSO Keycloak Helm Chart | ||
|
||
The helm chart installs `Secret` k8s objects with the release name `sso-keycloak`. | ||
The `SSO Keycloak Helm Chart` provides a easy way to deploy (RedHat SSO)[https://access.redhat.com/products/red-hat-single-sign-on], which is specifically designed for BCGov SSO services, on Openshift. | ||
|
||
## Installing the Chart | ||
## Usages | ||
|
||
To install the chart on a specific namespace. | ||
### Add this chart repository | ||
|
||
```bash | ||
$ make install NAMESPACE=<namespace> | ||
```console | ||
$ helm repo add sso-keycloak https://bcgov.github.io/sso-keycloak | ||
``` | ||
|
||
To upgrade the chart on a specific namespace. | ||
### Install this chart repository | ||
|
||
```bash | ||
$ make upgrade NAMESPACE=<namespace> | ||
```console | ||
$ helm install <release-name> sso-keycloak/sso-keycloak [--namespace <my-namespace>] [--version <x.y.z>] [--values ./custom-values.yaml] | ||
``` | ||
|
||
To uninstall the chart on a specific namespace. | ||
### Upgrade this chart repository | ||
|
||
```bash | ||
$ make uninstall NAMESPACE=<namespace> | ||
```console | ||
$ helm upgrade <release-name> sso-keycloak/sso-keycloak [--namespace <my-namespace>] [--version <x.y.z>] [--values ./custom-values.yaml] | ||
``` | ||
|
||
To lint the chart on a specific namespace. | ||
### Uninstall this chart repository | ||
|
||
```bash | ||
$ make lint NAMESPACE=<namespace> | ||
```console | ||
$ helm uninstall <release-name> [--namespace <my-namespace>] | ||
``` | ||
|
||
## Configuration | ||
|
||
The following table lists the configurable parameters of the Keycloak chart and their default values. | ||
|
||
Parameter | Description | Default | ||
--- | --- | --- | ||
`replicaCount` | Number of pods to create | `1` | ||
`image.repository` | container image repository | `ghcr.io/bcgov/sso` | ||
`image.tag` | container image tag | `dev` | ||
`image.pullPolicy` | container image pull policy | `Always` | ||
`nameOverride` | override for the chart name | `sso-keycloak` | ||
`fullNameOverride` | override for the full chart name | `sso-keycloak` | ||
`service.type` | type of service to create | `ClusterIP` | ||
`service.port` | port of service | `8080` | ||
`pingService.enabled` | enable DNS ping | `true` | ||
`pingService.port` | exposed port of ping service | `8888` | ||
`postgres.host` | host of postgres service | `sso-pgsql-master` | ||
`postgres.dbName` | name of database | `rhsso` | ||
`postgres.port` | exposed port of database | `5432` | ||
`postgres.credentials.secret` | name of secret containing database credentials | `sso-pgsql` | ||
`postgres.credentials.adminUsername` | name of admin database user | `postgres` | ||
`postgres.credentials.passwordKey` | Secret key of admin password | `password-superuser` | ||
`postgres.poolSize.min` | Minimum pool size | `5` | ||
`postgres.poolSize.max` | Maximum pool size | `20` | ||
`jgroupsCluster.secret` | Name of secret | `2` | ||
`jgroupsCluster.passwordKey` | Secret key for password | `password` | ||
`additionalServerOptions` | Additional command line options for server | `-Dkeycloak.profile.feature.authorization=enabled -Djboss.persistent.log.dir=/var/log/eap` | ||
`tls.enabled` | Enable tls | `false` | ||
`tls.httpsSecret` | Name of secret for tls cert | `sso-x509-https-secret` | ||
`tls.jgroupsSecret` | Name of secret for jgroups | `sso-x509-jgroups-secret` | ||
`persistentLog.enabled` | Enable persistent logs | `true` | ||
`persistentLog.storageClassName` | Storage class name of volume | `netapp-file-standard` | ||
`persistentLog.path` | Path to save logs | `/var/log/eap` | ||
`resources.limits.memory` | memory limit for pods | `2Gi` | ||
`resources.limits.cpu` | CPU limit for pods | `2` | ||
`resources.requests.cpu` | cpu request for pods | `1250m` | ||
`resources.requests.memory` | memory request for pods | `1Gi` | ||
`nodeSelector` | node labels for pod assignment | `{}` | ||
`tolerations` | toleration settings | `[]` | ||
`affinity` | affinity settings | `{}` | ||
| Parameter | Description | Default | | ||
| ------------------------------------ | ---------------------------------------------- | ------------------------------------------------------------------------------------------ | | ||
| `replicaCount` | Number of pods to create | `1` | | ||
| `image.repository` | container image repository | `ghcr.io/bcgov/sso` | | ||
| `image.tag` | container image tag | `dev` | | ||
| `image.pullPolicy` | container image pull policy | `Always` | | ||
| `nameOverride` | override for the chart name | `sso-keycloak` | | ||
| `fullNameOverride` | override for the full chart name | `sso-keycloak` | | ||
| `service.type` | type of service to create | `ClusterIP` | | ||
| `service.port` | port of service | `8080` | | ||
| `pingService.enabled` | enable DNS ping | `true` | | ||
| `pingService.port` | exposed port of ping service | `8888` | | ||
| `postgres.host` | host of postgres service | `sso-pgsql-master` | | ||
| `postgres.dbName` | name of database | `rhsso` | | ||
| `postgres.port` | exposed port of database | `5432` | | ||
| `postgres.credentials.secret` | name of secret containing database credentials | `sso-pgsql` | | ||
| `postgres.credentials.adminUsername` | name of admin database user | `postgres` | | ||
| `postgres.credentials.passwordKey` | Secret key of admin password | `password-superuser` | | ||
| `postgres.poolSize.min` | Minimum pool size | `5` | | ||
| `postgres.poolSize.max` | Maximum pool size | `20` | | ||
| `additionalServerOptions` | Additional command line options for server | `-Dkeycloak.profile.feature.authorization=enabled -Djboss.persistent.log.dir=/var/log/eap` | | ||
| `tls.enabled` | Enable tls | `false` | | ||
| `tls.httpsSecret` | Name of secret for tls cert | `sso-x509-https-secret` | | ||
| `tls.jgroupsSecret` | Name of secret for jgroups | `sso-x509-jgroups-secret` | | ||
| `persistentLog.enabled` | Enable persistent logs | `true` | | ||
| `persistentLog.storageClassName` | Storage class name of volume | `netapp-file-standard` | | ||
| `persistentLog.path` | Path to save logs | `/var/log/eap` | | ||
| `resources.limits.memory` | memory limit for pods | `2Gi` | | ||
| `resources.limits.cpu` | CPU limit for pods | `2` | | ||
| `resources.requests.cpu` | cpu request for pods | `1250m` | | ||
| `resources.requests.memory` | memory request for pods | `1Gi` | | ||
| `nodeSelector` | node labels for pod assignment | `{}` | | ||
| `tolerations` | toleration settings | `[]` | | ||
| `affinity` | affinity settings | `{}` | | ||
|
||
### Notes | ||
|
||
- The helm chart installs two `Secret` k8s objects: | ||
1. `<release-name>-admin-secret`: it stores the Keycloak admin password. | ||
1. `<release-name>-jgroups`: it stores the Keycloak cluster jgroups password. |
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
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 |
---|---|---|
|
@@ -14,9 +14,6 @@ postgres: | |
admin: | ||
secret: sso-admin-dev | ||
|
||
jgroupCluster: | ||
secret: sso-jgroups-dev | ||
|
||
tls: | ||
enabled: true | ||
|
||
|
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 |
---|---|---|
|
@@ -14,9 +14,6 @@ postgres: | |
admin: | ||
secret: sso-admin-prod | ||
|
||
jgroupCluster: | ||
secret: sso-jgroups-prod | ||
|
||
tls: | ||
enabled: true | ||
|
||
|
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 |
---|---|---|
|
@@ -14,9 +14,6 @@ postgres: | |
admin: | ||
secret: sso-admin-dev | ||
|
||
jgroupCluster: | ||
secret: sso-jgroups-dev | ||
|
||
tls: | ||
enabled: true | ||
|
||
|
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 |
---|---|---|
|
@@ -14,9 +14,6 @@ postgres: | |
admin: | ||
secret: sso-admin-prod | ||
|
||
jgroupCluster: | ||
secret: sso-jgroups-prod | ||
|
||
tls: | ||
enabled: true | ||
|
||
|
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 |
---|---|---|
|
@@ -14,9 +14,6 @@ postgres: | |
admin: | ||
secret: sso-admin-test | ||
|
||
jgroupCluster: | ||
secret: sso-jgroups-test | ||
|
||
tls: | ||
enabled: true | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
replicaCount: 2 | ||
|
||
image: | ||
tag: 7.4-37-rc.2 | ||
|
||
service: | ||
type: ClusterIP | ||
port: 8443 | ||
|
||
postgres: | ||
host: sso-patroni | ||
credentials: | ||
secret: sso-patroni | ||
|
||
tls: | ||
enabled: true | ||
|
||
resources: | ||
limits: | ||
cpu: 2 | ||
memory: 2Gi | ||
requests: | ||
cpu: 1250m | ||
memory: 2Gi |
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
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.