Dapr System Installation
🟢 Management
Dapr is a portable, event-driven, runtime for building distributed applications across cloud and edge.
Opstella is backed by Dapr as its backing service for Microservices Connection and Meshing.
Prerequisites
Section titled “Prerequisites”- 💿Persistence Storage Access for Dapr System
- On Kubernetes when requesting for a PVC, will request with Storage Class specified.
Preparation
Section titled “Preparation”Kubernetes Cluster Preparation
Section titled “Kubernetes Cluster Preparation”-
Connect to
🟢 ManagementKubernetes Cluster ; i.e w/ Kubeconfig FileTerminal window export KUBECONFIG="$HOME/opstella-installation/kubeconfigs/management_cluster.yaml" -
Prepare
🟢 ManagementKubernetes Cluster InformationEnsure
K8S_INTERNAL_DOMAIN,K8S_STORAGECLASS_NAMEare defined as per the Shell Variables guide.
Dapr Preparation
Section titled “Dapr Preparation”-
Create Helm Values Configurations
Terminal window cat <<EOF > $HOME/opstella-installation/helm-values/dapr-full-values.yaml# Application: Dapr Chart Global Variablesglobal:# Application: Handling Kubernetes Domain NamednsSuffix: ".${K8S_INTERNAL_DOMAIN}"# Application: Handling Kubernetes Secuity ComplianceseccompProfile: RuntimeDefault# Application: Production guidelines on Kubernetes for Dapr; See More https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-production/priorityClassName: system-cluster-criticalha:enabled: truedapr_sidecar_injector:# Application/OPSTELLA_CUSOMIZE: Handling Kubernetes Secuity CompliancekubeClusterDomain: ${K8S_INTERNAL_DOMAIN}sidecarDropALLCapabilities: truedapr_scheduler:cluster:storageClassName: ${K8S_STORAGECLASS_NAME}dapr_placement:cluster:forceInMemoryLog: trueEOF
Installation
Section titled “Installation”-
Add Dapr Helm Repository
Terminal window # Add Helm Repositoryhelm repo add dapr https://dapr.github.io/helm-charts/helm repo update -
Install Dapr
-
Install a Helm Release with specific Helm Chart Version
--version 1.14.1(App Version: 1.14.1)Terminal window # Install Dapr Helm Releasehelm install opstella-dapr dapr/dapr --version 1.14.1 \--namespace dapr-system \-f $HOME/opstella-installation/helm-values/dapr-full-values.yaml
-
Post-Installation
Section titled “Post-Installation”Dapr Testing
Section titled “Dapr Testing”-
Get Pod Status - Dapr
Terminal window kubectl get pods -n dapr-systemDapr should be
RunningNAME READY STATUS RESTARTS AGE... (deducted)dapr-placement-server-0 1/1 Running 0 XdXhdapr-placement-server-1 1/1 Running 0 XdXhdapr-placement-server-2 1/1 Running 0 XdXhdapr-scheduler-server-0 1/1 Running 0 XdXhdapr-scheduler-server-1 1/1 Running 0 XdXhdapr-scheduler-server-2 1/1 Running 0 XdXhdapr-sentry-XXXXXXX-YYYYY 1/1 Running 0 XdXhdapr-sentry-XXXXXXX-YYYYY 1/1 Running 0 XdXhdapr-sentry-XXXXXXX-YYYYY 1/1 Running 0 XdXhdapr-sidecar-injector-XXXXXXX-YYYYY 1/1 Running 0 XdXhdapr-sidecar-injector-XXXXXXX-YYYYY 1/1 Running 0 XdXhdapr-sidecar-injector-XXXXXXX-YYYYY 1/1 Running 0 XdXhdapr-operator-XXXXXXX-YYYYY 1/1 Running 0 XdXhdapr-operator-XXXXXXX-YYYYY 1/1 Running 0 XdXhdapr-operator-XXXXXXX-YYYYY 1/1 Running 0 XdXh
Finished?
Use the below navigation to proceed