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
| sudo aptitude -y install nginx | |
| cd /etc/nginx/sites-available | |
| sudo rm default | |
| sudo cat > jenkins | |
| upstream app_server { | |
| server 127.0.0.1:8080 fail_timeout=0; | |
| } | |
| server { | |
| listen 80; |
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
| --- | |
| - hosts: localhost | |
| vars: | |
| - dnsname: your.dns.name | |
| - tmppath: "./tmp/" | |
| - crtpath: "{{ tmppath }}{{ dnsname }}.crt" | |
| - pempath: "{{ tmppath }}{{ dnsname }}.pem" | |
| - csrpath: "{{ tmppath }}{{ dnsname }}.csr" | |
| - pfxpath: "{{ tmppath }}{{ dnsname }}.pfx" | |
| - private_key_password: "password" |
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 clone \ | |
| https://github.com/vfarcic/k8s-specs.git | |
| cd k8s-specs | |
| # Create a Kubernetes cluster | |
| cat sts/jenkins.yml | |
| # Only if minishift |
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
| ###################### | |
| # Create The Cluster # | |
| ###################### | |
| # Follow the instructions from https://github.com/weaveworks/eksctl to intall `eksctl` | |
| export AWS_ACCESS_KEY_ID=[...] # Replace [...] with AWS access key ID | |
| export AWS_SECRET_ACCESS_KEY=[...] # Replace [...] with AWS secret access key |
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
| ###################### | |
| # Create The Cluster # | |
| ###################### | |
| gcloud auth login | |
| REGION=us-east1 | |
| MACHINE_TYPE=n1-standard-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
| ###################### | |
| # Create The Cluster # | |
| ###################### | |
| # Make sure that your minishift version is v1.15 or higher | |
| minishift start \ | |
| --vm-driver virtualbox \ | |
| --cpus 2 \ | |
| --memory 2048 \ |
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
| ###################### | |
| # Create The Cluster # | |
| ###################### | |
| # Make sure that your kops version is v1.9 or higher. | |
| # Make sure that all the prerequisites described in the "Appendix A" are met. | |
| # Do not run the commands from below if you are a **Windows** user. You'll have to follow the instructions from the Appendix B instead. |
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
| ###################### | |
| # Create The Cluster # | |
| ###################### | |
| # Make sure that your minikube version is v0.26 or higher | |
| minikube start \ | |
| --vm-driver virtualbox \ | |
| --cpus 2 \ | |
| --memory 2048 |
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
| #################### | |
| # Create A Cluster # | |
| #################### | |
| # Open Docker Preferences, select the Kubernetes tab, and select the "Enable Kubernetes" checkbox | |
| # Open Docker Preferences, select the Advanced tab, set CPUs to 2, and Memory to 2.0 | |
| # Make sure that your current kubectl context is pointing to your Docker for Mac/Windows cluster |