Last active
July 20, 2020 06:55
-
-
Save shundezhang/1f43a53ae27caf0b29044da809573de3 to your computer and use it in GitHub Desktop.
use juju to deploy charmed k8s with docker, calico and openstack integration
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
juju deploy ./bundle.yaml --overlay openstack-overlay.yaml --trust --overlay calico-overlay.yaml |
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
description: A highly-available, production-grade Kubernetes cluster. | |
series: bionic | |
services: | |
docker: | |
annotations: | |
gui-x: '475' | |
gui-y: '800' | |
charm: cs:~containers/docker-74 | |
resources: {} | |
easyrsa: | |
annotations: | |
gui-x: '90' | |
gui-y: '420' | |
charm: cs:~containers/easyrsa-318 | |
constraints: root-disk=8G | |
num_units: 1 | |
resources: | |
easyrsa: 5 | |
etcd: | |
annotations: | |
gui-x: '800' | |
gui-y: '420' | |
charm: cs:~containers/etcd-521 | |
constraints: root-disk=8G | |
num_units: 3 | |
options: | |
channel: 3.3/stable | |
resources: | |
core: 0 | |
etcd: 3 | |
snapshot: 0 | |
flannel: | |
annotations: | |
gui-x: '475' | |
gui-y: '605' | |
charm: cs:~containers/flannel-492 | |
resources: | |
flannel-amd64: 625 | |
flannel-arm64: 622 | |
flannel-s390x: 609 | |
kubeapi-load-balancer: | |
annotations: | |
gui-x: '450' | |
gui-y: '250' | |
charm: cs:~containers/kubeapi-load-balancer-730 | |
constraints: mem=4G root-disk=8G | |
expose: true | |
num_units: 1 | |
resources: {} | |
kubernetes-master: | |
annotations: | |
gui-x: '800' | |
gui-y: '850' | |
charm: cs:~containers/kubernetes-master-850 | |
constraints: cores=2 mem=4G root-disk=16G | |
num_units: 2 | |
options: | |
channel: 1.18/stable | |
resources: | |
cdk-addons: 0 | |
core: 0 | |
kube-apiserver: 0 | |
kube-controller-manager: 0 | |
kube-proxy: 0 | |
kube-scheduler: 0 | |
kubectl: 0 | |
kubernetes-worker: | |
annotations: | |
gui-x: '90' | |
gui-y: '850' | |
charm: cs:~containers/kubernetes-worker-682 | |
constraints: cores=4 mem=4G root-disk=16G | |
expose: true | |
num_units: 3 | |
options: | |
channel: 1.18/stable | |
resources: | |
cni-amd64: 645 | |
cni-arm64: 636 | |
cni-s390x: 648 | |
core: 0 | |
kube-proxy: 0 | |
kubectl: 0 | |
kubelet: 0 | |
relations: | |
- - kubernetes-master:kube-api-endpoint | |
- kubeapi-load-balancer:apiserver | |
- - kubernetes-master:loadbalancer | |
- kubeapi-load-balancer:loadbalancer | |
- - kubernetes-master:kube-control | |
- kubernetes-worker:kube-control | |
- - kubernetes-master:certificates | |
- easyrsa:client | |
- - etcd:certificates | |
- easyrsa:client | |
- - kubernetes-master:etcd | |
- etcd:db | |
- - kubernetes-worker:certificates | |
- easyrsa:client | |
- - kubernetes-worker:kube-api-endpoint | |
- kubeapi-load-balancer:website | |
- - kubeapi-load-balancer:certificates | |
- easyrsa:client | |
- - flannel:etcd | |
- etcd:db | |
- - flannel:cni | |
- kubernetes-master:cni | |
- - flannel:cni | |
- kubernetes-worker:cni | |
- - docker:docker | |
- kubernetes-worker:container-runtime | |
- - docker:docker | |
- kubernetes-master:container-runtime |
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
description: Charmed Kubernetes overlay to add Calico CNI. | |
applications: | |
calico: | |
annotations: | |
gui-x: '480' | |
gui-y: '750' | |
charm: cs:~containers/calico | |
flannel: | |
relations: | |
- - calico:etcd | |
- etcd:db | |
- - calico:cni | |
- kubernetes-master:cni | |
- - calico:cni | |
- kubernetes-worker: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
description: Charmed Kubernetes overlay to add native OpenStack support. | |
applications: | |
openstack-integrator: | |
annotations: | |
gui-x: "600" | |
gui-y: "300" | |
charm: cs:~containers/openstack-integrator | |
num_units: 1 | |
trust: true | |
relations: | |
- ['openstack-integrator', 'kubernetes-master:openstack'] | |
- ['openstack-integrator', 'kubernetes-worker:openstack'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment