puppet
puppet --version
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
| #!/bin/bash | |
| ### Install Tomcat 9 + JRE8 on Ubuntu, Debian, CentOS, OpenSUSE 64Bits | |
| ### URL com Screencast de Instalação do Tomcat9 | |
| ### http://www.linuxpro.com.br/2017/04/instalando-tomcat-9-no-ubuntu/ | |
| ### Link: https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomcat-8-on-centos-7 | |
| ## First install wget | |
| ## Primeiro instale o wget | |
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
| ## Install NGINX | |
| ## when installing on Amazon Linux AMI, use: | |
| $ sudo yum install nginx -y | |
| ## when installing on Amazon Linux 2 AMI, use | |
| $ sudo amazon-linux-extras install nginx1.12 -y | |
| ## Install PHP and PHP-FPM | |
| # for PHP version 7.1 use php71 and php71-fpm instead | |
| $ sudo yum install php -y | |
| $ sudo yum install php-fpm -y |
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
| #!/bin/bash | |
| # -*- ENCODING: UTF-8 -*- | |
| # | |
| # ------------------------------------------------------------------ | |
| # [Jorge Andrada Prieto] [jandradap@gmail.com] | |
| # Title: update_git_repos.sh | |
| # Fecha: 02/11/2018 | |
| # Description: Update all git repos in the path | |
| # If the repositories are https, need to configure user and pass/token: | |
| # |
- Scaling k8s daemonset down to zero
kubectl -n kube-system patch daemonset myDaemonset -p '{"spec": {"template": {"spec": {"nodeSelector": {"non-existing": "true"}}}}}'
- Scaling up k8s daemonset
kubectl -n kube-system patch daemonset myDaemonset --type json -p='[{"op": "remove", "path": "/spec/template/spec/nodeSelector/non-existing"}]'