-
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
1 parent
ac6b334
commit d15d550
Showing
6 changed files
with
81 additions
and
65 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Apply | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
apply: | ||
runs-on: ubuntu-latest | ||
env: | ||
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CRED }} | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Auth GCloud | ||
uses: 'google-github-actions/[email protected]' | ||
with: | ||
credentials_json: ${{ secrets.GOOGLE_CRED }} | ||
export_environment_variables: true | ||
create_credentials_file: true | ||
|
||
- name: Set up Cloud SDK | ||
uses: 'google-github-actions/setup-gcloud@v2' | ||
|
||
- name: Use gcloud CLI | ||
run: gcloud container clusters list | ||
|
||
- name: Setup Cluster Kubernetes | ||
uses: 'google-github-actions/get-gke-credentials@v2' | ||
with: | ||
cluster_name: ${{ vars.CLUSTER }} | ||
location: ${{ vars.ZONE }} | ||
|
||
- name: Setup Namespace | ||
run: kubectl config set-context --current --namespace=orderly | ||
|
||
- name: apply api | ||
run: kubectl apply -f k8s/ |
This file was deleted.
Oops, something went wrong.
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,38 @@ | ||
name: Destroy | ||
|
||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
destroy: | ||
runs-on: ubuntu-latest | ||
env: | ||
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CRED }} | ||
|
||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Auth GCloud | ||
uses: 'google-github-actions/[email protected]' | ||
with: | ||
credentials_json: ${{ secrets.GOOGLE_CRED }} | ||
export_environment_variables: true | ||
create_credentials_file: true | ||
|
||
- name: Setup Cloud SDK | ||
uses: 'google-github-actions/setup-gcloud@v2' | ||
|
||
- name: Setup Cluster Kubernetes | ||
uses: 'google-github-actions/get-gke-credentials@v2' | ||
with: | ||
cluster_name: ${{ vars.CLUSTER }} | ||
location: ${{ vars.ZONE }} | ||
|
||
- name: Setup Namespace | ||
run: kubectl config set-context --current --namespace=orderly | ||
|
||
- name: delete api | ||
run: kubectl delete -f k8s/ | ||
|
||
|
||
|
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 |
---|---|---|
|
@@ -15,4 +15,4 @@ spec: | |
name: cpu | ||
target: | ||
type: Utilization | ||
averageUtilization: 70 | ||
averageUtilization: 90 |