Skip to content

Commit

Permalink
ci: 🚀 replaced redis in AKS with Azure CosmosDB
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Barbosa <tbarbos@hotmail.com>
  • Loading branch information
t1agob committed May 15, 2024
1 parent 6951019 commit 56725ac
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
kubeconfig: ${{ secrets.KUBE_CONFIG }}

- run: |
kubectl apply -f deploy/redis.yaml
kubectl apply -f deploy/cosmosdb-statestore.yaml
kubectl apply -f deploy/pubsub.yaml
build_and_deploy_order_management_service:
Expand Down
26 changes: 26 additions & 0 deletions deploy/cosmosdb-statestore.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: statestore
spec:
type: state.azure.cosmosdb
version: v1
metadata:
- name: url
secretKeyRef:
name: cosmosdb-creds
key: COSMOSDB_URL
- name: masterKey
secretKeyRef:
name: cosmosdb-creds
key: COSMOSDB_MASTER_KEY
- name: database
secretKeyRef:
name: cosmosdb-creds
key: COSMOSDB_DATABASE
- name: collection
secretKeyRef:
name: cosmosdb-creds
key: COSMOSDB_COLLECTION
- name: keyPrefix
value: none
2 changes: 1 addition & 1 deletion deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
spec:
containers:
- name: order-management
image: daprcafe.azurecr.io/order-management:latest
image: daprcafe.azurecr.io/order-management:new
imagePullPolicy: IfNotPresent
ports:
- containerPort: 40000
Expand Down

0 comments on commit 56725ac

Please sign in to comment.