-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add hello-kubernetes multi-app run k8s template
Signed-off-by: Mukundan Sundararajan <[email protected]>
- Loading branch information
1 parent
e278ba4
commit 3f8c923
Showing
5 changed files
with
112 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
DAPR_CLI_VERSION: 1.11.0 | ||
DAPR_RUNTIME_VERSION: 1.11.0 | ||
DAPR_CLI_VERSION: 1.12.0-rc.1 | ||
DAPR_RUNTIME_VERSION: 1.12.0-rc.3 | ||
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/v${DAPR_CLI_VERSION}/install/ | ||
DAPR_DEFAULT_IMAGE_REGISTRY: ghcr | ||
MACOS_PYTHON_VERSION: 3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,11 +38,11 @@ jobs: | |
KIND_VERSION: v0.12.0 | ||
KIND_IMAGE_SHA: sha256:69860bda5563ac81e3c0057d654b5253219618a22ec3a346306239bba8cfa1a6 | ||
strategy: | ||
matrix: | ||
matrix: | ||
os: [ubuntu-latest] | ||
fail-fast: false | ||
steps: | ||
- name: Check out code | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
- name: Load environment variables | ||
uses: artursouza/export-env-action@v2 | ||
|
@@ -90,12 +90,12 @@ jobs: | |
- role: worker | ||
image: kindest/node:${{ env.KUBERNETES_VERSION }}@${{ env.KIND_IMAGE_SHA }} | ||
EOF | ||
# Log the generated kind.yaml for easy reference. | ||
cat kind.yaml | ||
- name: Create KinD Cluster - Linux | ||
if: matrix.os == 'ubuntu-latest' | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: helm/[email protected] | ||
with: | ||
config: kind.yaml | ||
|
@@ -124,7 +124,7 @@ jobs: | |
run: wget -q ${{ env.DAPR_INSTALL_URL }}/install.sh -O - | /bin/bash -s ${{ env.DAPR_CLI_VERSION }} | ||
- name: Set up Dapr CLI - Windows | ||
if: matrix.os == 'windows-latest' | ||
run: powershell -Command "\$$script=iwr -useb ${{ env.DAPR_INSTALL_URL }}/install.ps1; \$$block=[ScriptBlock]::Create(\$$script); invoke-command -ScriptBlock \$$block -ArgumentList ${{ env.DAPR_CLI_VERSION }}" | ||
run: powershell -Command "\$$script=iwr -useb ${{ env.DAPR_INSTALL_URL }}/install.ps1; \$$block=[ScriptBlock]::Create(\$$script); invoke-command -ScriptBlock \$$block -ArgumentList ${{ env.DAPR_CLI_VERSION }}" | ||
- name: Install Dapr | ||
run: | | ||
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -135,7 +135,7 @@ jobs: | |
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
helm repo update | ||
helm install redis bitnami/redis | ||
dapr init -k --runtime-version=${{ env.DAPR_RUNTIME_VERSION }} --wait || kubectl get pods --all-namespaces | ||
dapr init -k --dev --runtime-version=${{ env.DAPR_RUNTIME_VERSION }} --wait || kubectl get pods --all-namespaces | ||
kubectl get nodes -o wide | ||
for pod in `dapr status -k | awk '/dapr/ {print $1}'`; do kubectl describe pod -l app=$pod -n dapr-system ; kubectl logs -l app=$pod -n dapr-system; done | ||
- name: Install utilities dependencies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: 1 | ||
apps: | ||
- appDirPath: ./node | ||
appID: nodeapp | ||
appPort: 3000 | ||
containerImage: ghcr.io/dapr/samples/hello-k8s-node:latest | ||
createService: true | ||
- appDirPath: ./python | ||
appID: pythonapp | ||
containerImage: ghcr.io/dapr/samples/hello-k8s-python:latest |