Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
helm: update docs and remove hpa
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Dec 22, 2023
1 parent fb1938b commit 363d583
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 91 deletions.
2 changes: 1 addition & 1 deletion charts/data-control-center/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.10
version: 0.2.11

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
62 changes: 28 additions & 34 deletions charts/data-control-center/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,44 +69,38 @@ The following table lists the configurable parameters of the rook-operator chart
| Parameter | Description | Default |
|-----------|-------------|---------|
| `additionalEnv` | Will be put in a Secret and used as env vars | `{}` |
| `affinity` | | `{}` |
| `autoscaling.enabled` | | `false` |
| `autoscaling.maxReplicas` | | `100` |
| `autoscaling.minReplicas` | | `1` |
| `autoscaling.targetCPUUtilizationPercentage` | | `80` |
| `config` | data-control-center config, documentation here: https://github.com/koor-tech/data-control-center/blob/main/docs/configuration.md#reference | `{"ancienttCmd":"ancientt","ceph":{"api":{"insecureSSL":true,"password":null,"url":"https://rook-ceph-mgr-dashboard:8443/api","username":"data-control-center"}},"http":{"listen":":8282","sessions":{"cookieSecret":"your_generated_cookie_secret","domain":"localhost"}},"jwt":{"secret":"your_generated_jwt_secret"},"logLevel":"INFO","mode":"release","namespace":null,"oauth2":{"providers":[]},"readOnly":false,"updateCheck":{"enabled":true,"interval":"24h"},"users":[]}` |
| `affinity` | Pod Affinity options https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#affinity-v1-core | `{}` |
| `config` | data-control-center config, documentation here: https://github.com/koor-tech/data-control-center/blob/main/docs/configuration.md#reference | `{"ancienttCmd":"ancientt","ceph":{"api":{"insecureSSL":true,"password":null,"url":"https://rook-ceph-mgr-dashboard:8443/api","username":"data-control-center"}},"http":{"listen":":8282","sessions":{"cookieSecret":"your_generated_cookie_secret","domain":"localhost"}},"jwt":{"secret":"your_generated_jwt_secret"},"logLevel":"INFO","mode":"release","namespace":"","oauth2":{"providers":[]},"readOnly":false,"updateCheck":{"enabled":true,"interval":"24h"},"users":[]}` |
| `config.ceph.api.password` | Password is auto generated if not set and retrieved using helm's lookup function | `nil` |
| `config.namespace` | The rook ceph namespace, if different from the current namespace. Defaults to the current namespace. | `nil` |
| `fullnameOverride` | | `""` |
| `image.pullPolicy` | | `"IfNotPresent"` |
| `image.repository` | | `"docker.io/koorinc/data-control-center"` |
| `image.tag` | | `""` |
| `imagePullSecrets` | | `[]` |
| `ingress.annotations` | | `{}` |
| `config.namespace` | The rook ceph namespace, if different from the release namespace. Defaults to the release namespace. | `""` |
| `fullnameOverride` | Overrides the chart's computed fullname | `""` |
| `image.pullPolicy` | Image pull policy https://kubernetes.io/docs/concepts/containers/images#updating-images | `"IfNotPresent"` |
| `image.repository` | Image repository | `"docker.io/koorinc/data-control-center"` |
| `image.tag` | Overrides the image tag whose default is the chart appVersion. | `""` |
| `imagePullSecrets` | Specifiy image pull secrets https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod | `[]` |
| `ingress.annotations` | Annotations to add to Ingress | `{}` |
| `ingress.className` | Ingress class name | `""` |
| `ingress.enabled` | If an Ingress object should be created. | `false` |
| `ingress.hosts[0].host` | | `"chart-example.local"` |
| `ingress.hosts[0].paths[0].path` | | `"/"` |
| `ingress.hosts[0].paths[0].pathType` | | `"ImplementationSpecific"` |
| `ingress.tls` | | `[]` |
| `nameOverride` | | `""` |
| `nodeSelector` | | `{}` |
| `podAnnotations` | | `{}` |
| `podSecurityContext` | | `{}` |
| `ingress.hosts` | List of Ingress hosts/paths to expose via an Ingress object | `[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]` |
| `ingress.tls` | Ingress TLS config https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#ingresstls-v1-networking-k8s-io | `[]` |
| `nameOverride` | Overrides the chart's name | `""` |
| `nodeSelector` | Node selector https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | `{}` |
| `podAnnotations` | Additional annotations to add to the pods | `{}` |
| `podSecurityContext` | Pod security context https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | `{}` |
| `postInstallJob.enabled` | If enabled, will create a Ceph dashboard admin user `data-control-center` either on Rook/Ceph cluster pre upgrade(when having data-control-center as a helm dependency) or on post install of data-control-center (needs existing Rook/Ceph cluster). This user will be used for retrieving cluster info and stats. | `true` |
| `rbac.ancientt` | | `true` |
| `rbac.annotations` | | `{}` |
| `rbac.create` | | `true` |
| `rbac.name` | | `""` |
| `replicaCount` | | `2` |
| `resources` | | `{}` |
| `securityContext` | | `{}` |
| `service.port` | | `8282` |
| `service.type` | | `"ClusterIP"` |
| `serviceAccount.annotations` | | `{}` |
| `serviceAccount.create` | | `true` |
| `serviceAccount.name` | | `""` |
| `tolerations` | | `[]` |
| `rbac.ancientt` | Setup RBAC for running ancientt network tests | `true` |
| `rbac.annotations` | Annotations to add to the service account | `{}` |
| `rbac.create` | Specifies wheter RBAC roles should be created | `true` |
| `rbac.name` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. | `""` |
| `replicaCount` | Replica count to run. | `1` |
| `resources` | Resources to set for the container https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#resourcerequirements-v1-core | `{}` |
| `securityContext` | Container security context https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | `{}` |
| `service.port` | Service port number | `8282` |
| `service.type` | Service type (Default `ClusterIP`) | `"ClusterIP"` |
| `serviceAccount.annotations` | Annotations to add to the service account | `{}` |
| `serviceAccount.create` | Specifies whether a service account should be created | `true` |
| `serviceAccount.name` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. | `""` |
| `tolerations` | List of Tolerations https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#toleration-v1-core | `[]` |

## Uninstalling the Chart

Expand Down
4 changes: 1 addition & 3 deletions charts/data-control-center/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ metadata:
labels:
{{- include "data-control-center.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "data-control-center.selectorLabels" . | nindent 6 }}
Expand Down Expand Up @@ -36,7 +34,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
containerPort: 8282
protocol: TCP
livenessProbe:
httpGet:
Expand Down
32 changes: 0 additions & 32 deletions charts/data-control-center/templates/hpa.yaml

This file was deleted.

5 changes: 5 additions & 0 deletions charts/data-control-center/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ rules:
- list
- create
- delete
- apiGroups: [""]
resources: ["pods/log"]
verbs:
- "get"
- "list"
- apiGroups: [""]
resources: ["nodes"]
verbs:
Expand Down
52 changes: 31 additions & 21 deletions charts/data-control-center/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,51 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 2
# -- Replica count to run.
replicaCount: 1

image:
# -- Image repository
repository: docker.io/koorinc/data-control-center
# -- Image pull policy https://kubernetes.io/docs/concepts/containers/images#updating-images
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
# -- Overrides the image tag whose default is the chart appVersion.
tag: ""

# -- Specifiy image pull secrets https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod
imagePullSecrets: []

# -- Overrides the chart's name
nameOverride: ""
# -- Overrides the chart's computed fullname
fullnameOverride: ""

serviceAccount:
# Specifies whether a service account should be created
# -- Specifies whether a service account should be created
create: true
# Annotations to add to the service account
# -- Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
# -- The name of the service account to use. If not set and create is true, a name is generated using the fullname template.
name: ""

rbac:
# Specifies wheter RBAC roles should be created
# -- Specifies wheter RBAC roles should be created
create: true
# Annotations to add to the service account
# -- Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
# -- The name of the service account to use. If not set and create is true, a name is generated using the fullname template.
name: ""
# Enable ancientt RBAC
# -- Setup RBAC for running ancientt network tests
ancientt: true

# -- Additional annotations to add to the pods
podAnnotations: {}

# -- Pod security context https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
podSecurityContext: {}
# fsGroup: 2000

# -- Container security context https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
securityContext: {}
# capabilities:
# drop:
Expand All @@ -48,27 +56,33 @@ securityContext: {}
# runAsUser: 1000

service:
# -- Service type (Default `ClusterIP`)
type: ClusterIP
# -- Service port number
port: 8282

ingress:
# -- If an Ingress object should be created.
enabled: false
# -- Ingress class name
className: ""
# -- Annotations to add to Ingress
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# -- List of Ingress hosts/paths to expose via an Ingress object
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
# -- Ingress TLS config https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#ingresstls-v1-networking-k8s-io
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

# -- Resources to set for the container https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#resourcerequirements-v1-core
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand All @@ -81,17 +95,13 @@ resources: {}
# cpu: 100m
# memory: 128Mi

autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

# -- Node selector https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
nodeSelector: {}

# -- List of Tolerations https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#toleration-v1-core
tolerations: []

# -- Pod Affinity options https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#affinity-v1-core
affinity: {}

# -- Will be put in a Secret and used as env vars
Expand All @@ -108,12 +118,12 @@ postInstallJob:
image:
repository: quay.io/ceph/ceph
pullPolicy: IfNotPresent
tag: v17.2.6-20230826
tag: v17.2.7-20231212

# -- data-control-center config, documentation here: https://github.com/koor-tech/data-control-center/blob/main/docs/configuration.md#reference
config:
# -- The rook ceph namespace, if different from the current namespace. Defaults to the current namespace.
namespace:
# -- The rook ceph namespace, if different from the release namespace. Defaults to the release namespace.
namespace: ""
logLevel: 'INFO'
mode: 'release'
readOnly: false
Expand Down

0 comments on commit 363d583

Please sign in to comment.