-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathk8-script.sh
More file actions
23 lines (16 loc) · 1.01 KB
/
k8-script.sh
File metadata and controls
23 lines (16 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# Make sure to be in the right environment - before proceeding with the following steps
# run the harness-deployment to generate the deployment files
kubectl create ns sckanner
kubectl config set-context --current --namespace=sckanner
# TO run the harness deployment command - to generate helm chart files - use the launch json command or as below:
# for local
harness-deployment cloud-harness . -i sckanner -d sckanner.local -n sckanner -u -dtls --no-cd -l -e local
# for dev
harness-deployment cloud-harness . -i sckanner -d sckanner.local -n sckanner -u -dtls --no-cd -l -e dev
# run without -u to disable the gatekeeper check and without --no-cd to disable re-generating codefresh-dev.yaml
harness-deployment cloud-harness . -i sckanner -d sckanner.local -n sckanner -l -e local
# do the skaffold deploy
skaffold dev --cleanup=false
# Do the following if you need to copy the values for the helm to the cloudharness resources locally.
# cp deployment/helm/values.yaml /opt/cloudharness/resources/allvalues.yaml