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
| ubuntu@ip-172-31-42-113:/etc/nginx/sites-enabled$ ls | |
| apilb | |
| ubuntu@ip-172-31-42-113:/etc/nginx/sites-enabled$ cat apilb | |
| upstream target_service { | |
| server 172.31.38.154:6443; | |
| server 172.31.19.2:6443; | |
| } | |
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
| :series: xenial | |
| description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes. | |
| services: | |
| ceph-mon: | |
| annotations: | |
| gui-x: '600' | |
| gui-y: '300' | |
| charm: cs:ceph-mon | |
| num_units: 3 | |
| to: |
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
| # Delete all pods stuck in Pending, useful if you cannot pull a specific image. | |
| kubectl get pods --all-namespaces | grep Pending | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod |
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
| :series: xenial | |
| description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes. | |
| services: | |
| ceph-mon: | |
| annotations: | |
| gui-x: '600' | |
| gui-y: '300' | |
| charm: cs:ceph-mon | |
| num_units: 3 | |
| to: |
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
| :series: xenial | |
| description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes. | |
| services: | |
| ceph-mon: | |
| annotations: | |
| gui-x: '600' | |
| gui-y: '300' | |
| charm: cs:ceph-mon | |
| num_units: 3 | |
| to: |
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
| apiVersion: extensions/v1beta1 | |
| kind: Deployment | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app: ericsson | |
| name: ericsson | |
| spec: | |
| replicas: 3 | |
| selector: |
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
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: rancher | |
| labels: | |
| name: rancher | |
| --- | |
| kind: ServiceAccount | |
| apiVersion: v1 | |
| metadata: |
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
| series: xenial | |
| description: A nine-machine Kubernetes cluster, appropriate for production. Includes a three-machine etcd cluster and three Kubernetes worker nodes. | |
| services: | |
| calico: | |
| annotations: | |
| gui-x: '450' | |
| gui-y: '750' | |
| charm: cs:~containers/calico-47 | |
| options: | |
| calico-policy-image: "quay.io/calico/kube-controllers:v1.0.4" |
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
| #!/usr/bin/env bash | |
| echo "Installing Missing Packages" | |
| sudo apt update && sudo apt install -y simplestreams apache2 apt-mirror git docker.io python3-pip unzip | |
| sudo pip3 install pyyaml | |
| sudo pip3 install pyaml | |
| sudo snap install kubectl --classic | |
| sudo apt-get install juju -y | |
| echo "Writing Config Files" |
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
| --- | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| kind: ClusterRoleBinding | |
| metadata: | |
| name: cluster-admin | |
| subjects: | |
| - kind: ServiceAccount | |
| name: default | |
| namespace: default | |
| roleRef: |