This is the Experimental version (Latest). It is under active development and may change. For the most reliable documentation, use the version selector in the top-right to switch to Stable, or click here to go to the Stable version's homepage.
Dapr Configurations
อัพเดทล่าสุด:
เนื้อหานี้ยังไม่มีในภาษาของคุณ
🟢 Management
Opstella has designed with Dapr to cooperate between its microservices,
add configurations of Dapr within opstella-system is required to Opstella to function properly.
Preparation
Section titled “Preparation”-
Connect to
🟢 ManagementKubernetes Cluster ; i.e w/ Kubeconfig FileTerminal window source $BASE_WORKING_DIR/shell-values/kubernetes/management_cluster.vars.sh -
Prepare
🟢 ManagementKubernetes Cluster InformationEnsure
K8S_INTERNAL_DOMAINis defined as per the Shell Variables guide.
Install Dapr Components CRDs
Section titled “Install Dapr Components CRDs”-
Install Pub/Sub Broker
Use the Redis that you previously installed Host and Credentials.
(Ensure
REDIS_HOSTis loaded from your variables)Terminal window kubectl apply --namespace opstella-system -f - <<EOFapiVersion: dapr.io/v1alpha1kind: Componentspec:type: pubsub.redisversion: v1metadata:- name: redisHostvalue: ${OPSTELLA_REDIS_HOST}- name: redisSentinelMasterNamevalue: redis-opstella- name: redisTypevalue: sentinel- name: enableTLSvalue: 'false'- name: redisPasswordvalue: ${OPSTELLA_REDIS_PASSWORD}metadata:name: pubsubEOF -
Install Statestore Component
Use the Redis that you previously installed Host and Credentials.
Terminal window kubectl apply --namespace opstella-system -f - <<EOFapiVersion: dapr.io/v1alpha1kind: Componentspec:type: state.redisversion: v1metadata:- name: redisHostvalue: ${OPSTELLA_REDIS_HOST}- name: redisSentinelMasterNamevalue: redis-opstella- name: redisTypevalue: sentinel- name: keyPrefixvalue: none- name: redisPasswordvalue: ${OPSTELLA_REDIS_PASSWORD}metadata:name: statestoreEOF
Install Dapr Configurations CRs
Section titled “Install Dapr Configurations CRs”-
Install Resiliency
Terminal window kubectl apply --namespace opstella-system -f - <<EOFapiVersion: dapr.io/v1alpha1kind: Resiliencyspec:policies:retries:DaprBuiltInServiceRetries:policy: constantduration: 2smaxRetries: 5DefaultServiceInvocationRetries:policy: constantduration: 1smaxRetries: 3pubsubRetry:policy: constantduration: 30smaxRetries: 10targets:components:pubsub:inbound:retry: pubsubRetrymetadata:name: resiliencyEOF -
Install Kubernetes Name Resolution Configuration
Terminal window kubectl apply --namespace opstella-system -f - <<EOFapiVersion: dapr.io/v1alpha1kind: Configurationspec:nameResolution:version: v1component: "kubernetes"configuration:clusterDomain: ${K8S_INTERNAL_DOMAIN}metadata:name: configEOF
Finished?
Use the below navigation to proceed