Skip to content

Instantly share code, notes, and snippets.

View gititreach's full-sized avatar

gititreach gititreach

View GitHub Profile
####################
# 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
######################
# Create The Cluster #
######################
# Make sure that your minikube version is v0.26 or higher
minikube start \
--vm-driver virtualbox \
--cpus 2 \
--memory 2048
@gititreach
gititreach / kops.sh
Created March 23, 2020 00:43 — forked from vfarcic/kops.sh
######################
# 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.
######################
# Create The Cluster #
######################
# Make sure that your minishift version is v1.15 or higher
minishift start \
--vm-driver virtualbox \
--cpus 2 \
--memory 2048 \
@gititreach
gititreach / gke.sh
Created March 23, 2020 00:44 — forked from vfarcic/gke.sh
######################
# Create The Cluster #
######################
gcloud auth login
REGION=us-east1
MACHINE_TYPE=n1-standard-1
@gititreach
gititreach / eks.sh
Created March 23, 2020 00:44 — forked from vfarcic/eks.sh
######################
# 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
git clone \
https://github.com/vfarcic/k8s-specs.git
cd k8s-specs
# Create a Kubernetes cluster
cat sts/jenkins.yml
# Only if minishift
@gititreach
gititreach / create_cert.yml
Created May 6, 2020 06:17 — forked from JonTheNiceGuy/create_cert.yml
A simple ansible playbook to create a new self-signed certificate
---
- 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"
@gititreach
gititreach / proxy_nginx.sh
Created May 22, 2020 03:18 — forked from rdegges/proxy_nginx.sh
Create a HTTP proxy for jenkins using NGINX.
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;