AMI:
- Ubuntu Server 16.04 - ami-91659f4
Size:
- t2.medium
PACKER_LOG=1 packer build post.json | |
2017/01/02 17:27:46 [INFO] Packer version: 0.12.1 | |
2017/01/02 17:27:46 Packer Target OS/Arch: linux amd64 | |
2017/01/02 17:27:46 Built with Go Version: go1.7.3 | |
2017/01/02 17:27:46 Detected home directory from env var: /home/jgreat | |
2017/01/02 17:27:46 Using internal plugin for amazon-instance | |
2017/01/02 17:27:46 Using internal plugin for azure-arm | |
2017/01/02 17:27:46 Using internal plugin for docker | |
2017/01/02 17:27:46 Using internal plugin for file | |
2017/01/02 17:27:46 Using internal plugin for profitbricks |
#!/bin/bash | |
### kubectl should really allow you to export a singel context. | |
### if you only have one context you can just run `kubectl config view --flatten` | |
### if you have more than one context use this script. | |
### | |
### **Requires jq: https://stedolan.github.io/jq/ | |
### | |
context=${1:-"minikube"} |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
creationTimestamp: null | |
labels: | |
run: server | |
name: server | |
spec: | |
replicas: 1 | |
selector: |
Create an cluster with an existing vnet/subnet in your subscription
You need to set up an app access (service principal): https://rancher.com/docs/rancher/v1.6/en/hosts/azure/#app-registration
First and foremost it is important to not run out of connections from the Rancher Server to the MySQL database server. The threads per server are driven by the thread pool size. So max connections should follow this basic formula:
Number of nodes x Total threads + buffer for non-rancher tasks
storageClass with PersistentVolumeClaims are really the way to do storage with Kubernetes.
For Azure There are 3 types of storage avalible.
docker rm -fv $(docker ps -qa) | |
docker volume ls -q | xargs docker volume rm | |
rm -rf /etc/ceph \ | |
/etc/cni \ | |
/etc/kubernetes \ | |
/opt/cni \ | |
/opt/rke \ | |
/run/secrets/kubernetes.io \ | |
/run/calico \ | |
/run/flannel \ |