-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
5 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 |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
|
||
jobs: | ||
cdk8s-k3d: | ||
name: CDK8s with k3d | ||
name: CDK8s with k3d | ||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
|
@@ -23,16 +23,17 @@ jobs: | |
- uses: AbsaOSS/[email protected] | ||
id: k3d-cluster-1 | ||
with: | ||
cluster-name: "test-cluster-1" | ||
args: >- | ||
--agents 1 | ||
--config=k3d.yaml | ||
- name: Cluster info | ||
run: | | ||
echo k3d-cluster-1: ${{ steps.k3d-cluster-1.outputs.network }} ${{ steps.k3d-cluster-1.outputs.subnet-CIDR }} | ||
echo | ||
kubectl cluster-info | ||
- name: Install CDK8s-cli | ||
run: npm install -g cdk8s-cli | ||
|
||
|
@@ -41,7 +42,7 @@ jobs: | |
pip3 install --user pipenv | ||
PYTHON_BIN_PATH="$(python3 -m site --user-base)/bin" | ||
export PATH="$PATH:$PYTHON_BIN_PATH" | ||
- name: CDK8s import | ||
run: | | ||
pipenv install | ||
|
@@ -50,7 +51,7 @@ jobs: | |
- name: CDK8s synthesize into a k8s template | ||
run: | | ||
cdk8s synth | ||
- name: Apply the k8s template | ||
run: | | ||
kubectl apply -f ./dist/hello.k8s.yaml | ||
|