-
Notifications
You must be signed in to change notification settings - Fork 20
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 #3 from enix/frozen_password
Frozen password
- Loading branch information
Showing
9 changed files
with
80 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,7 @@ The command removes all the Kubernetes components associated with the chart and | |
| emailServer | string | `nil` | Email server used by Netbox | | ||
| emailTimeout | int | `10` | Timeout in email communications | | ||
| emailUsername | string | `""` | Username to use on email server | | ||
| existingEnvSecret | string | `nil` | Provide secret environment variable. Should contain all netbox's expected secret env vars | | ||
| extraContainers | list | `[]` | | | ||
| extraEnvs | object | `{}` | | | ||
| extraInitContainers | list | `[]` | | | ||
|
@@ -73,7 +74,7 @@ The command removes all the Kubernetes components associated with the chart and | |
| fullnameOverride | string | `""` | String to fully override netbox.fullname template with a string | | ||
| image.pullPolicy | string | `"IfNotPresent"` | Netbox image pull policy | | ||
| image.repository | string | `"netboxcommunity/netbox"` | Netbox image | | ||
| image.tag | string | `"v2.7.12"` | Netbox image version | | ||
| image.tag | string | `nil` | Netbox image version | | ||
| ingress.annotations | object | `{}` | Ingress annotations | | ||
| ingress.enabled | bool | `false` | Enable ingress controller resource | | ||
| ingress.hosts | list | `["netbox.local"]` | Ingress Hosts | | ||
|
@@ -91,7 +92,11 @@ The command removes all the Kubernetes components associated with the chart and | |
| nginxImage.repository | string | `"nginx"` | Nginx image | | ||
| nginxImage.tag | string | `"1.17.9-alpine"` | Nginx image version | | ||
| nodeSelector | object | `{}` | nodeSelector configuration on Netbox Pod | | ||
| persistence.enabled | bool | `true` | Enable persistency (Deployment mode) | | ||
| persistence.accessModes | list | `["ReadWriteOnce"]` | Persistent Volume Access Modes. Only for statefulSet Mode | | ||
| persistence.customVolumeClaims | string | `nil` | Entirely customize VolumeClaims. Only for statefulSet Mode | | ||
| persistence.enabled | bool | `true` | Enable statefulSet persistency | | ||
| persistence.size | string | `"5G"` | Size of data volume. Only for statefulSet Mode | | ||
| persistence.storageClassName | string | `nil` | Storage class of backing PVC. Only for statefulSet Mode | | ||
| postgresql.enabled | bool | `true` | Enable the postgresql sub-chart | | ||
| postgresql.host | string | `nil` | Host of the postgresql server to use | | ||
| postgresql.postgresqlDatabase | string | `"netbox"` | Postgresql database name | | ||
|
@@ -101,22 +106,24 @@ The command removes all the Kubernetes components associated with the chart and | |
| redis.cluster.enabled | bool | `false` | Enable the redis sub-chart cluster-mode | | ||
| redis.enabled | bool | `true` | Enable the redis sub-chart | | ||
| redis.host | string | `nil` | Host of the redis server | | ||
| redis.master.persistence.enabled | bool | `false` | | | ||
| resources | object | `{}` | resources configuration on Netbox Pod | | ||
| restartPolicy | string | `"Always"` | Pods restart policy | | ||
| secretKey | string | `nil` | Netbox django secret key (use long random string) | | ||
| service.port | int | `80` | Port to use to access Netbox | | ||
| service.type | string | `"ClusterIP"` | Kubernetes Service type | | ||
| statefulSet.persistence.accessModes | list | `["ReadWriteOnce"]` | Persistent Volume Access Modes | | ||
| statefulSet.persistence.enabled | bool | `true` | Enable statefulSet persistency | | ||
| statefulSet.persistence.size | string | `"5G"` | Size of data volume | | ||
| statefulSet.persistence.storageClassName | string | `nil` | Storage class of backing PVC | | ||
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account | | ||
| serviceAccount.create | bool | `true` | Specifies whether a service account should be created | | ||
| serviceAccount.name | string | `nil` | Name of the service account to use. Default is derived from fullname template | | ||
| statefulSet.replicaCount | int | `1` | Number of Netbox Pods to run (StatefulSet mode) | | ||
| statefulSet.updateStrategy | object | `{"type":"RollingUpdate"}` | Update strategy policy | | ||
| superuser.apiToken | string | `nil` | API access token of the Netbox superuser to create on first launch | | ||
| superuser.email | string | `"[email protected]"` | Email of the Netbox superuser to create on first launch | | ||
| superuser.name | string | `"admin"` | Username of the Netbox superuser to create on first launch | | ||
| superuser.password | string | `nil` | Password of the Netbox superuser to create on first launch | | ||
| superuser.token | string | `nil` | API access token of the Netbox superuser to create on first launch | | ||
| superuserExistingSecret | string | `nil` | Use custom secret for initial superuser credentials. Should contain appropriate environment variable name (eg: SUPERUSER_PASSWORD) | | ||
| superuserSkip | bool | `false` | Don't create superuser on startup. | | ||
| tolerations | list | `[]` | tolerations to add on Netbox Pod | | ||
| updateStrategy | object | `{"type":"RollingUpdate"}` | Update strategy policy | | ||
|
||
## License | ||
|
||
|
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 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{{- if not .Values.superuserSkip }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "netbox.superuser.secretName" . }} | ||
labels: | ||
{{- include "netbox.labels" . | nindent 4 }} | ||
annotations: | ||
"helm.sh/hook": pre-install | ||
data: | ||
SUPERUSER_NAME: {{ .Values.superuser.name | b64enc | quote }} | ||
SUPERUSER_EMAIL: {{ .Values.superuser.email | b64enc | quote }} | ||
{{- if .Values.superuser.password }} | ||
SUPERUSER_PASSWORD: {{ .Values.superuser.password | b64enc | quote }} | ||
{{- else }} | ||
SUPERUSER_PASSWORD: {{ randAlphaNum 14 | b64enc | quote }} | ||
{{- end }} | ||
{{- if .Values.superuser.apiToken }} | ||
SUPERUSER_API_TOKEN: {{ .Values.superuser.apiToken | b64enc | quote }} | ||
{{- else }} | ||
SUPERUSER_API_TOKEN: {{ randAlphaNum 40 | b64enc | quote }} | ||
{{- end }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,15 +139,22 @@ emailPassword: "" | |
# secretKey -- Netbox django secret key (use long random string) | ||
secretKey: | ||
|
||
# superuserSkip -- Don't create superuser on startup. | ||
superuserSkip: false | ||
|
||
# superuserExistingSecret -- Use custom secret for initial superuser credentials. | ||
# Should contain appropriate environment variable name (eg: SUPERUSER_PASSWORD) | ||
superuserExistingSecret: | ||
|
||
superuser: | ||
# superuser.email -- Email of the Netbox superuser to create on first launch | ||
email: [email protected] | ||
# superuser.name -- Username of the Netbox superuser to create on first launch | ||
name: admin | ||
# superuser.password -- Password of the Netbox superuser to create on first launch | ||
password: | ||
# superuser.token -- API access token of the Netbox superuser to create on first launch | ||
token: | ||
# superuser.apiToken -- API access token of the Netbox superuser to create on first launch | ||
apiToken: | ||
|
||
# existingEnvSecret -- Provide secret environment variable. Should contain all netbox's expected secret env vars | ||
existingEnvSecret: | ||
|
@@ -189,3 +196,7 @@ redis: | |
enabled: true | ||
# redis.host -- Host of the redis server | ||
host: | ||
master: | ||
persistence: | ||
# redis.master.persistence.enable -- Persistence for redis, not really needed for netbox | ||
enabled: false |