Skip to content

Commit

Permalink
Add option to Helm chart to skip deploying Dapr dashboard (dapr#5263)
Browse files Browse the repository at this point in the history
See dapr#4724

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
  • Loading branch information
ItalyPaleAle and artursouza authored Sep 27, 2022
1 parent b19b72c commit 97d2bf9
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dapr-perf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ jobs:
- name: Deploy dapr to AKS cluster
if: env.TEST_PREFIX != ''
env:
ADDITIONAL_HELM_SET: "dapr_operator.logLevel=debug,dapr_operator.watchInterval=20s"
ADDITIONAL_HELM_SET: "dapr_operator.logLevel=debug,dapr_operator.watchInterval=20s,dapr_dashboard.enabled=false"
run: make docker-deploy-k8s
- name: Deploy test components
if: env.TEST_PREFIX != ''
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dapr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ jobs:
- name: Deploy dapr to AKS cluster
if: env.TEST_PREFIX != ''
env:
ADDITIONAL_HELM_SET: "dapr_operator.logLevel=debug,dapr_operator.watchInterval=20s"
ADDITIONAL_HELM_SET: "dapr_operator.logLevel=debug,dapr_operator.watchInterval=20s,dapr_dashboard.enabled=false"
run: make docker-deploy-k8s
- name: Deploy test components
if: env.TEST_PREFIX != ''
Expand Down
17 changes: 9 additions & 8 deletions charts/dapr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The Helm chart has the follow configuration options that can be supplied:
| `global.ha.enabled` | Highly Availability mode enabled for control plane | `false` |
| `global.ha.replicaCount` | Number of replicas of control plane services in Highly Availability mode | `3` |
| `global.ha.disruption.minimumAvailable` | Minimum amount of available instances for control plane. This can either be effective count or %. | `` |
| `global.ha.disruption.maximumUnavailable` | Maximum amount of instances that are allowed to be unavailable for control plane. This can either be effective count or %. | `25%` |
| `global.ha.disruption.maximumUnavailable` | Maximum amount of instances that are allowed to be unavailable for control plane. This can either be effective count or %. | `25%` |
| `global.prometheus.enabled` | Prometheus metrics enablement for control plane services | `true` |
| `global.prometheus.port` | Prometheus scrape http endpoint port | `9090` |
| `global.mtls.enabled` | Mutual TLS enablement | `true` |
Expand All @@ -93,18 +93,19 @@ The Helm chart has the follow configuration options that can be supplied:
| `global.daprControlPlaneOs` | Operating System for Dapr control plane | `linux` |
| `global.daprControlPlaneArch` | CPU Architecture for Dapr control plane | `amd64` |
| `global.nodeSelector` | Pods will be scheduled onto a node node whose labels match the nodeSelector | `{}` |
| `global.tolerations` | Pods will be allowed to schedule onto a node whose taints match the tolerations | `{}` |
| `global.tolerations` | Pods will be allowed to schedule onto a node whose taints match the tolerations | `{}` |
| `global.labels` | Custom pod levels | `{}` |

### Dapr Dashboard options:
| Parameter | Description | Default |
|-------------------------------------------|-------------------------------------------------------------------------|-------------------------|
| `dapr_dashboard.replicaCount` | Number of replicas | `1` |
| `dapr_dashboard.logLevel` | service Log level | `info` |
| `dapr_dashboard.image.registry` | docker registry | `docker.io/daprio` |
| `dapr_dashboard.image.imagePullSecrets` | docker images pull secrets for docker registry | `docker.io/daprio` |
| `dapr_dashboard.image.name` | docker image name | `dashboard` |
| `dapr_dashboard.image.tag` | docker image tag | `"0.6.0"` |
| `dapr_dashboard.enabled` | Enable the Dapr dashboard | `true` |
| `dapr_dashboard.replicaCount` | Number of replicas | `1` |
| `dapr_dashboard.logLevel` | service Log level | `info` |
| `dapr_dashboard.image.registry` | docker registry | `docker.io/daprio` |
| `dapr_dashboard.image.imagePullSecrets` | docker images pull secrets for docker registry | `docker.io/daprio` |
| `dapr_dashboard.image.name` | docker image name | `dashboard` |
| `dapr_dashboard.image.tag` | docker image tag | `"0.6.0"` |
| `dapr_dashboard.serviceType` | Type of [Kubernetes service](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) to use for the Dapr Dashboard service | `ClusterIP` |
| `dapr_dashboard.runAsNonRoot` | Boolean value for `securityContext.runAsNonRoot`. You may have to set this to `false` when running in Minikube | `true` |
| `dapr_dashboard.resources` | Value of `resources` attribute. Can be used to set memory/cpu resources/limits. See the section "Resource configuration" above. Defaults to empty | `{}` |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if eq .Values.enabled true }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -78,3 +79,4 @@ spec:
tolerations:
{{ toYaml .Values.global.tolerations | indent 8 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if eq .Values.enabled true }}
{{- if eq .Values.global.ha.enabled true }}
{{- if .Capabilities.APIVersions.Has "policy/v1" }}
apiVersion: policy/v1
Expand Down Expand Up @@ -28,3 +29,4 @@ spec:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if eq .Values.enabled true }}
kind: Service
apiVersion: v1
metadata:
Expand All @@ -14,3 +15,4 @@ spec:
port: {{ .Values.ports.port }}
targetPort: {{ .Values.ports.targetPort }}
type: {{ .Values.serviceType }}
{{- end }}
1 change: 1 addition & 0 deletions charts/dapr/charts/dapr_dashboard/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
enabled: true
replicaCount: 1
logLevel: info

Expand Down

0 comments on commit 97d2bf9

Please sign in to comment.