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
| vpa: | |
| enabled: true | |
| updater: | |
| enabled: false #выключаем, он нам не нужен =) | |
| recommender: | |
| extraArgs: | |
| prometheus-address: | | |
| http://prometheus-operator-kube-p-prometheus.monitoring.svc.cluster.local:9090 #дефолтный адрес prometheus установленного при помоши kube-prometheus-stack | |
| storage: prometheus #указываем тип хранилища | |
| history-length: "8h" #указываем за какой период времени проверять метрики ресурсов |
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
| name: Run tests for OTUS homework | |
| on: | |
| push: | |
| branches-ignore: main | |
| pull_request: | |
| branches-ignore: main | |
| jobs: | |
| test: |
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
| name: Run tests for OTUS homework | |
| on: | |
| push: | |
| branches-ignore: main | |
| pull_request: | |
| branches-ignore: main | |
| jobs: | |
| test: |
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
| name: Run tests for OTUS homework | |
| on: | |
| push: | |
| branches-ignore: main | |
| pull_request: | |
| branches-ignore: main | |
| jobs: | |
| test: |
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
| name: Run tests for OTUS homework | |
| on: | |
| push: | |
| branches-ignore: main | |
| pull_request: | |
| branches-ignore: main | |
| jobs: | |
| test: |
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
| yc compute instance create \ | |
| --name reddit-app \ | |
| --hostname reddit-app \ | |
| --memory=4 \ | |
| --create-boot-disk image-folder-id=standard-images,image-family=ubuntu-1604-lts,size=10GB \ | |
| --network-interface subnet-name=default-ru-central1-a,nat-ip-version=ipv4 \ | |
| --metadata serial-port-enable=1 \ | |
| --ssh-key ~/.ssh/appuser.pub |
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
| cat <<EOF> setupvpn.sh | |
| #!/bin/bash | |
| echo "deb http://repo.pritunl.com/stable/apt focal main" | sudo tee /etc/apt/sources.list.d/pritunl.list | |
| apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A | |
| curl https://raw.githubusercontent.com/pritunl/pgp/master/pritunl_repo_pub.asc | sudo apt-key add - | |
| apt update | |
| apt -y install wireguard wireguard-tools | |
| ufw disable | |
| apt -y install pritunl mongodb | |
| systemctl enable mongod pritunl |
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
| name: 'Auto Assign' | |
| on: pull_request | |
| jobs: | |
| add-reviews: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: kentaro-m/[email protected] | |
| with: | |
| repo-token: '${{ secrets.GITHUB_TOKEN }}' |
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
| name: Run tests for OTUS homework | |
| on: | |
| push: | |
| branches-ignore: main | |
| pull_request: | |
| branches-ignore: main | |
| jobs: | |
| test: |
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
| repos: | |
| - repo: https://github.com/pre-commit/pre-commit-hooks | |
| rev: v2.3.0 | |
| hooks: | |
| - id: end-of-file-fixer | |
| - id: trailing-whitespace |
NewerOlder