This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
# Out with the old | |
apt-get remove docker docker-engine | |
# In with the new | |
apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
apt-get update | |
apt-get install docker-ce |
This file contains 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
# Yes on Jessie as well | |
apt-get update && apt-get install -y apt-transport-https | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list | |
deb http://apt.kubernetes.io/ kubernetes-xenial main | |
EOF | |
apt-get update | |
apt-get install -y kubelet kubeadm kubectl kubernetes-cni |
This file contains 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
cp /etc/kubernetes/admin.conf $HOME/ | |
chown $(id -u):$(id -g) $HOME/admin.conf | |
export KUBECONFIG=$HOME/admin.conf |
This file contains 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
[kubeadm] WARNING: kubeadm is in beta, please do not use it for production clusters. | |
[init] Using Kubernetes version: v1.6.0 | |
[init] Using Authorization mode: RBAC | |
[preflight] Running pre-flight checks | |
[preflight] Starting the kubelet service | |
[certificates] Generated CA certificate and key. | |
[certificates] Generated API server certificate and key. | |
[certificates] API Server serving cert is signed for DNS names [kubeadm-master kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.96.0.1 10.138.0.4] | |
[certificates] Generated API server kubelet client certificate and key. | |
[certificates] Generated service account token signing key and public key. |
This file contains 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
[certificates] Valid certificates and keys now exist in "/etc/kubernetes/pki" | |
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/admin.conf" | |
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/kubelet.conf" | |
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/controller-manager.conf" | |
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/scheduler.conf" |
This file contains 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/coreos/flannel.git | |
kubectl apply -f flannel/Documentation/kube-flannel-rbac.yml | |
kubectl apply -f flannel/Documentation/kube-flannel.yml |
This file contains 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
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: admin-role | |
rules: | |
- apiGroups: ["*"] | |
resources: ["*"] | |
verbs: ["*"] | |
--- |
This file contains 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
--- | |
kind: Deployment | |
apiVersion: extensions/v1beta1 | |
metadata: | |
name: redis | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: |
This file contains 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
[certificates] Valid certificates and keys now exist in "/etc/kubernetes/pki" | |
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/admin.conf" | |
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/kubelet.conf" | |
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/controller-manager.conf" | |
[kubeconfig] Wrote KubeConfig file to disk: "/etc/kubernetes/scheduler.conf" |
OlderNewer