Skip to content

Dapr System Installation

This content is not available in your language yet.

🟢 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.

  • 💿Persistence Storage Access for Dapr System
    • On Kubernetes when requesting for a PVC, will request with Storage Class specified.
  1. Connect to 🟢 Management Kubernetes Cluster ; i.e w/ Kubeconfig File

    Terminal window
    export KUBECONFIG="$HOME/opstella-installation/kubeconfigs/management_cluster.yaml"
  2. Prepare 🟢 Management Kubernetes Cluster Information

    Ensure K8S_INTERNAL_DOMAIN, K8S_STORAGECLASS_NAME are defined as per the Shell Variables guide.


  1. Create Helm Values Configurations

    Terminal window
    cat <<EOF > $HOME/opstella-installation/helm-values/dapr-full-values.yaml
    # Application: Dapr Chart Global Variables
    global:
    # Application: Handling Kubernetes Domain Name
    dnsSuffix: ".${K8S_INTERNAL_DOMAIN}"
    # Application: Handling Kubernetes Secuity Compliance
    seccompProfile: RuntimeDefault
    # Application: Production guidelines on Kubernetes for Dapr; See More https://docs.dapr.io/operations/hosting/kubernetes/kubernetes-production/
    priorityClassName: system-cluster-critical
    ha:
    enabled: true
    dapr_sidecar_injector:
    # Application/OPSTELLA_CUSOMIZE: Handling Kubernetes Secuity Compliance
    kubeClusterDomain: ${K8S_INTERNAL_DOMAIN}
    sidecarDropALLCapabilities: true
    dapr_scheduler:
    cluster:
    storageClassName: ${K8S_STORAGECLASS_NAME}
    dapr_placement:
    cluster:
    forceInMemoryLog: true
    EOF
  1. Add Dapr Helm Repository

    Terminal window
    # Add Helm Repository
    helm repo add dapr https://dapr.github.io/helm-charts/
    helm repo update
  2. 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 Release
      helm install opstella-dapr dapr/dapr --version 1.14.1 \
      --namespace dapr-system \
      -f $HOME/opstella-installation/helm-values/dapr-full-values.yaml
  1. Get Pod Status - Dapr

    Terminal window
    kubectl get pods -n dapr-system

    Dapr should be Running

    NAME READY STATUS RESTARTS AGE
    ... (deducted)
    dapr-placement-server-0 1/1 Running 0 XdXh
    dapr-placement-server-1 1/1 Running 0 XdXh
    dapr-placement-server-2 1/1 Running 0 XdXh
    dapr-scheduler-server-0 1/1 Running 0 XdXh
    dapr-scheduler-server-1 1/1 Running 0 XdXh
    dapr-scheduler-server-2 1/1 Running 0 XdXh
    dapr-sentry-XXXXXXX-YYYYY 1/1 Running 0 XdXh
    dapr-sentry-XXXXXXX-YYYYY 1/1 Running 0 XdXh
    dapr-sentry-XXXXXXX-YYYYY 1/1 Running 0 XdXh
    dapr-sidecar-injector-XXXXXXX-YYYYY 1/1 Running 0 XdXh
    dapr-sidecar-injector-XXXXXXX-YYYYY 1/1 Running 0 XdXh
    dapr-sidecar-injector-XXXXXXX-YYYYY 1/1 Running 0 XdXh
    dapr-operator-XXXXXXX-YYYYY 1/1 Running 0 XdXh
    dapr-operator-XXXXXXX-YYYYY 1/1 Running 0 XdXh
    dapr-operator-XXXXXXX-YYYYY 1/1 Running 0 XdXh

Finished?

Use the below navigation to proceed