This file contains hidden or 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
| apiVersion: flagger.app/v1alpha3 | |
| kind: Canary | |
| metadata: | |
| name: my-app | |
| namespace: dev | |
| spec: | |
| targetRef: | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| name: my-app |
This file contains hidden or 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
| #!/usr/local/bin/bash | |
| postman-to-k6 script.json -e env.json --csv data.source.csv -o k6-script.js | |
| k6 run --vus 30 --duration 300s k6-script.js | |
| [ $? -eq 0 ] || exit 1 |
This file contains hidden or 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
| #!/usr/local/bin/bash | |
| newman run script.json -e env.json -d data.csv | |
| [ $? -eq 0 ] || exit 1 |
This file contains hidden or 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
| FROM weaveworks/flagger-loadtester:0.12.0 | |
| USER root | |
| RUN apk update && apk add nodejs npm gettext | |
| RUN npm install -g newman | |
| RUN npm install postman-to-k6 | |
| COPY --from=loadimpact/k6:latest /usr/bin/k6 /usr/bin/k6 | |
| COPY scripts . | |
| USER app |
This file contains hidden or 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
| resource "google_compute_instance" "sontn-master01" { | |
| boot_disk { | |
| auto_delete = "true" | |
| device_name = "sontn-master01" | |
| initialize_params { | |
| image = "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-1604-xenial-v20191204" | |
| size = "20" | |
| type = "pd-standard" | |
| } |
This file contains hidden or 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
| git branch -D $(git for-each-ref --format='%(refname:short)' refs/heads/feature/*) |
This file contains hidden or 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
| fdisk /dev/xvdb # n > w | |
| mkfs -t ext4 /dev/xvdb1 | |
| vim /etc/fstab # /dev/xvdb1 /datadrive ext4 defaults 0 2 | |
| mkdir /datadrive | |
| mount /dev/xvdb1 /datadrive |
This file contains hidden or 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
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
| add-apt-repository \ | |
| "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
| $(lsb_release -cs) \ | |
| stable" | |
| apt-get update | |
| apt-get install docker-ce |
This file contains hidden or 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
| launchctl setenv KEY VALUE |
This file contains hidden or 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
| nginx -c /etc/nginx/nginx.conf -t |
NewerOlder