Skip to content

Instantly share code, notes, and snippets.

@kwmonroe
Created October 4, 2018 17:35
Show Gist options
  • Save kwmonroe/f3237275df1250732189e29f104a0378 to your computer and use it in GitHub Desktop.
Save kwmonroe/f3237275df1250732189e29f104a0378 to your computer and use it in GitHub Desktop.
deploy k8s to bionic lxd
$ juju deploy cs:bionic/ubuntu --constraints 'mem=30G cores=4 root-disk=50G'
Located charm "cs:ubuntu-12".
Deploying charm "cs:ubuntu-12".

$ juju ssh ubuntu/0

ubuntu@ip-172-31-10-253:~$ snap list
Name              Version    Rev   Tracking  Publisher   Notes
amazon-ssm-agent  2.2.800.0  495   stable/…  aws✓        classic
core              16-2.35    5328  stable    canonical✓  core

ubuntu@ip-172-31-10-253:~$ sudo snap refresh
core 16-2.35.2 from Canonical✓ refreshed
amazon-ssm-agent 2.3.68.0 from Amazon Web Services (aws✓) refreshed
Channel stable/ubuntu-18.04 for amazon-ssm-agent is closed; temporarily forwarding to stable.

ubuntu@ip-172-31-10-253:~$ snap list
Name              Version    Rev   Tracking  Publisher   Notes
amazon-ssm-agent  2.3.68.0   734   stable/…  aws✓        classic
core              16-2.35.2  5548  stable    canonical✓  core

ubuntu@ip-172-31-10-253:~$ sudo snap install lxd
lxd 3.5 from Canonical✓ installed

ubuntu@ip-172-31-10-253:~$ sudo lxd.migrate
=> Connecting to source server
=> Connecting to destination server
=> Running sanity checks
The source server is empty, no migration needed.

The migration is now complete and your containers should be back online.
Do you want to uninstall the old LXD (yes/no) [default=yes]?

All done. You may need to close your current shell and open a new one to have the "lxc" command work.
To migrate your existing client configuration, move ~/.config/lxc to ~/snap/lxd/current/.config/lxc

ubuntu@ip-172-31-10-253:~$ sudo usermod -a -G lxd ubuntu

ubuntu@ip-172-31-10-253:~$ logout
Connection to 54.193.123.193 closed.

$ juju ssh ubuntu/0

ubuntu@ip-172-31-10-253:~$ lxd init
Would you like to use LXD clustering? (yes/no) [default=no]:
Do you want to configure a new storage pool? (yes/no) [default=yes]:
Name of the new storage pool [default=default]: 
Name of the storage backend to use (btrfs, ceph, dir, lvm, zfs) [default=zfs]: dir
Would you like to connect to a MAAS server? (yes/no) [default=no]:
Would you like to create a new local network bridge? (yes/no) [default=yes]:
What should the new bridge be called? [default=lxdbr0]:
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]: none
Would you like LXD to be available over the network? (yes/no) [default=no]:
Would you like stale cached images to be updated automatically? (yes/no) [default=yes]
Would you like a YAML "lxd init" preseed to be printed? (yes/no) [default=no]:

ubuntu@ip-172-31-10-253:~$ sudo snap install juju --classic
juju 2.4.3 from Canonical✓ installed

ubuntu@ip-172-31-10-253:~$ juju bootstrap localhost local
Since Juju 2 is being run for the first time, downloading latest cloud information.
Fetching latest public cloud list...
Your list of public clouds is up to date, see `juju clouds`.
Creating Juju controller "local" on localhost/localhost
Looking for packaged Juju agent version 2.4.3 for amd64
To configure your system to better support LXD containers, please see: https://github.com/lxc/lxd/blob/master/doc/production-setup.md
Launching controller instance(s) on localhost/localhost...
 - juju-9e7963-0 (arch=amd64)
Installing Juju agent on bootstrap instance
Fetching Juju GUI 2.14.0
Waiting for address
Attempting to connect to 10.83.45.227:22
Connected to 10.83.45.227
Running machine configuration script...
Bootstrap agent now started
Contacting Juju controller at 10.83.45.227 to verify accessibility...
Bootstrap complete, "local" controller now available
Controller machines are in the "controller" model
Initial model "default" added

ubuntu@ip-172-31-10-253:~$ lxc profile list
+-----------------+---------+
|      NAME       | USED BY |
+-----------------+---------+
| default         | 1       |
+-----------------+---------+
| juju-controller | 1       |
+-----------------+---------+
| juju-default    | 0       |
+-----------------+---------+

ubuntu@ip-172-31-10-253:~$ lxc profile edit juju-default

ubuntu@ip-172-31-10-253:~$ lxc profile show juju-default
config:
  boot.autostart: "true"
  linux.kernel_modules: ip_tables,ip6_tables,netlink_diag,nf_nat,overlay
  raw.lxc: |
    lxc.apparmor.profile=unconfined
    lxc.mount.auto=proc:rw sys:rw
    lxc.cap.drop=
  security.nesting: "true"
  security.privileged: "true"
description: ""
devices:
  aadisable:
    path: /sys/module/nf_conntrack/parameters/hashsize
    source: /dev/null
    type: disk
  aadisable1:
    path: /sys/module/apparmor/parameters/enabled
    source: /dev/null
    type: disk
name: juju-default
used_by: []

ubuntu@ip-172-31-10-253:~$ juju deploy canonical-kubernetes --channel edge
Located bundle "cs:bundle/canonical-kubernetes-294"
Resolving charm: cs:~containers/easyrsa-112
Resolving charm: cs:~containers/etcd-199
Resolving charm: cs:~containers/flannel-139
Resolving charm: cs:~containers/kubeapi-load-balancer-152
Resolving charm: cs:~containers/kubernetes-master-208
Resolving charm: cs:~containers/kubernetes-worker-229
Executing changes:
- upload charm cs:~containers/easyrsa-112 for series bionic
- deploy application easyrsa on bionic using cs:~containers/easyrsa-112
  added resource easyrsa
- set annotations for easyrsa
- upload charm cs:~containers/etcd-199 for series bionic
- deploy application etcd on bionic using cs:~containers/etcd-199
  added resource etcd
  added resource snapshot
- set annotations for etcd
- upload charm cs:~containers/flannel-139 for series bionic
- deploy application flannel on bionic using cs:~containers/flannel-139
  added resource flannel-amd64
  added resource flannel-arm64
  added resource flannel-s390x
- set annotations for flannel
- upload charm cs:~containers/kubeapi-load-balancer-152 for series bionic
- deploy application kubeapi-load-balancer on bionic using cs:~containers/kubeapi-load-balancer-152
- expose kubeapi-load-balancer
- set annotations for kubeapi-load-balancer
- upload charm cs:~containers/kubernetes-master-208 for series bionic
- deploy application kubernetes-master on bionic using cs:~containers/kubernetes-master-208
  added resource cdk-addons
  added resource kube-apiserver
  added resource kube-controller-manager
  added resource kube-proxy
  added resource kube-scheduler
  added resource kubectl
- set annotations for kubernetes-master
- upload charm cs:~containers/kubernetes-worker-229 for series bionic
- deploy application kubernetes-worker on bionic using cs:~containers/kubernetes-worker-229
  added resource cni-amd64
  added resource cni-arm64
  added resource cni-s390x
  added resource kube-proxy
  added resource kubectl
  added resource kubelet
- expose kubernetes-worker
- set annotations for kubernetes-worker
- add relation kubernetes-master:kube-api-endpoint - kubeapi-load-balancer:apiserver
- add relation kubernetes-master:loadbalancer - kubeapi-load-balancer:loadbalancer
- add relation kubernetes-master:kube-control - kubernetes-worker:kube-control
- add relation kubernetes-master:certificates - easyrsa:client
- add relation etcd:certificates - easyrsa:client
- add relation kubernetes-master:etcd - etcd:db
- add relation kubernetes-worker:certificates - easyrsa:client
- add relation kubernetes-worker:kube-api-endpoint - kubeapi-load-balancer:website
- add relation kubeapi-load-balancer:certificates - easyrsa:client
- add relation flannel:etcd - etcd:db
- add relation flannel:cni - kubernetes-master:cni
- add relation flannel:cni - kubernetes-worker:cni
- add unit easyrsa/0 to new machine 0
- add unit etcd/0 to new machine 1
- add unit etcd/1 to new machine 2
- add unit etcd/2 to new machine 3
- add unit kubeapi-load-balancer/0 to new machine 4
- add unit kubernetes-master/0 to new machine 5
- add unit kubernetes-master/1 to new machine 6
- add unit kubernetes-worker/0 to new machine 7
- add unit kubernetes-worker/1 to new machine 8
- add unit kubernetes-worker/2 to new machine 9
Deploy of bundle completed.

ubuntu@ip-172-31-10-253:~$ juju status
Model    Controller  Cloud/Region         Version  SLA          Timestamp
default  local       localhost/localhost  2.4.3    unsupported  17:23:33Z

App                    Version  Status  Scale  Charm                  Store       Rev  OS      Notes
easyrsa                3.0.1    active      1  easyrsa                jujucharms  112  ubuntu
etcd                   3.2.10   active      3  etcd                   jujucharms  199  ubuntu
flannel                0.10.0   active      5  flannel                jujucharms  139  ubuntu
kubeapi-load-balancer  1.14.0   active      1  kubeapi-load-balancer  jujucharms  152  ubuntu  exposed
kubernetes-master      1.11.3   active      2  kubernetes-master      jujucharms  208  ubuntu
kubernetes-worker      1.11.3   active      3  kubernetes-worker      jujucharms  229  ubuntu  exposed

Unit                      Workload  Agent  Machine  Public address  Ports           Message
easyrsa/0*                active    idle   0        10.83.45.104                    Certificate Authority connected.
etcd/0*                   active    idle   1        10.83.45.131    2379/tcp        Healthy with 3 known peers
etcd/1                    active    idle   2        10.83.45.145    2379/tcp        Healthy with 3 known peers
etcd/2                    active    idle   3        10.83.45.230    2379/tcp        Healthy with 3 known peers
kubeapi-load-balancer/0*  active    idle   4        10.83.45.216    443/tcp         Loadbalancer ready.
kubernetes-master/0       active    idle   5        10.83.45.205    6443/tcp        Kubernetes master running.
  flannel/1               active    idle            10.83.45.205                    Flannel subnet 10.1.59.1/24
kubernetes-master/1*      active    idle   6        10.83.45.242    6443/tcp        Kubernetes master running.
  flannel/0*              active    idle            10.83.45.242                    Flannel subnet 10.1.24.1/24
kubernetes-worker/0       active    idle   7        10.83.45.168    80/tcp,443/tcp  Kubernetes worker running.
  flannel/3               active    idle            10.83.45.168                    Flannel subnet 10.1.44.1/24
kubernetes-worker/1*      active    idle   8        10.83.45.184    80/tcp,443/tcp  Kubernetes worker running.
  flannel/2               active    idle            10.83.45.184                    Flannel subnet 10.1.14.1/24
kubernetes-worker/2       active    idle   9        10.83.45.26     80/tcp,443/tcp  Kubernetes worker running.
  flannel/4               active    idle            10.83.45.26                     Flannel subnet 10.1.28.1/24

Entity  Meter status  Message
model   amber         user verification pending

Machine  State    DNS           Inst id        Series  AZ  Message
0        started  10.83.45.104  juju-10969e-0  bionic      Running
1        started  10.83.45.131  juju-10969e-1  bionic      Running
2        started  10.83.45.145  juju-10969e-2  bionic      Running
3        started  10.83.45.230  juju-10969e-3  bionic      Running
4        started  10.83.45.216  juju-10969e-4  bionic      Running
5        started  10.83.45.205  juju-10969e-5  bionic      Running
6        started  10.83.45.242  juju-10969e-6  bionic      Running
7        started  10.83.45.168  juju-10969e-7  bionic      Running
8        started  10.83.45.184  juju-10969e-8  bionic      Running
9        started  10.83.45.26   juju-10969e-9  bionic      Running

ubuntu@ip-172-31-10-253:~$ juju ssh kubernetes-worker/0 '/snap/bin/kubectl get po --all-namespaces'
NAMESPACE     NAME                                               READY     STATUS    RESTARTS   AGE
default       default-http-backend-2xk2q                         1/1       Running   0          10m
default       nginx-ingress-kubernetes-worker-controller-9r496   1/1       Running   0          10m
default       nginx-ingress-kubernetes-worker-controller-n6t4l   1/1       Running   0          10m
default       nginx-ingress-kubernetes-worker-controller-qkg8l   1/1       Running   0          10m
kube-system   heapster-v1.6.0-beta.1-565fff79cd-78zbv            4/4       Running   0          9m
kube-system   kube-dns-7b479ccbc6-dd56l                          3/3       Running   0          11m
kube-system   kubernetes-dashboard-6948bdb78-b22pq               1/1       Running   0          11m
kube-system   metrics-server-v0.2.1-5ccc565746-m95ct             2/2       Running   0          9m
kube-system   monitoring-influxdb-grafana-v4-b54d59784-g5fxm     2/2       Running   0          11m


### UPGRADE MASTERS

ubuntu@ip-172-31-10-253:~$ juju config kubernetes-master channel=1.12/candidate
ubuntu@ip-172-31-10-253:~$ juju status
Model    Controller  Cloud/Region         Version  SLA          Timestamp
default  local       localhost/localhost  2.4.3    unsupported  17:24:53Z

App                    Version  Status   Scale  Charm                  Store       Rev  OS      Notes
easyrsa                3.0.1    active       1  easyrsa                jujucharms  112  ubuntu
etcd                   3.2.10   active       3  etcd                   jujucharms  199  ubuntu
flannel                0.10.0   active       5  flannel                jujucharms  139  ubuntu
kubeapi-load-balancer  1.14.0   active       1  kubeapi-load-balancer  jujucharms  152  ubuntu  exposed
kubernetes-master      1.11.3   blocked      2  kubernetes-master      jujucharms  208  ubuntu
kubernetes-worker      1.11.3   active       3  kubernetes-worker      jujucharms  229  ubuntu  exposed

Unit                      Workload  Agent      Machine  Public address  Ports           Message
easyrsa/0*                active    idle       0        10.83.45.104                    Certificate Authority connected.
etcd/0*                   active    idle       1        10.83.45.131    2379/tcp        Healthy with 3 known peers
etcd/1                    active    idle       2        10.83.45.145    2379/tcp        Healthy with 3 known peers
etcd/2                    active    idle       3        10.83.45.230    2379/tcp        Healthy with 3 known peers
kubeapi-load-balancer/0*  active    idle       4        10.83.45.216    443/tcp         Loadbalancer ready.
kubernetes-master/0       blocked   idle       5        10.83.45.205    6443/tcp        Needs manual upgrade, run the upgrade action
  flannel/1               active    idle                10.83.45.205                    Flannel subnet 10.1.59.1/24
kubernetes-master/1*      active    executing  6        10.83.45.242    6443/tcp        (config-changed) Kubernetes master running.
  flannel/0*              active    idle                10.83.45.242                    Flannel subnet 10.1.24.1/24
kubernetes-worker/0       active    idle       7        10.83.45.168    80/tcp,443/tcp  Kubernetes worker running.
  flannel/3               active    idle                10.83.45.168                    Flannel subnet 10.1.44.1/24
kubernetes-worker/1*      active    idle       8        10.83.45.184    80/tcp,443/tcp  Kubernetes worker running.
  flannel/2               active    idle                10.83.45.184                    Flannel subnet 10.1.14.1/24
kubernetes-worker/2       active    idle       9        10.83.45.26     80/tcp,443/tcp  Kubernetes worker running.
  flannel/4               active    idle                10.83.45.26                     Flannel subnet 10.1.28.1/24

ubuntu@ip-172-31-10-253:~$ juju run-action kubernetes-master/0 upgrade
Action queued with id: a49a0ce1-99e9-4d9f-86cf-148ce728ae46

ubuntu@ip-172-31-10-253:~$ juju run-action kubernetes-master/1 upgrade
Action queued with id: 1aaa3196-2441-4d28-835f-9ec44702bc89

ubuntu@ip-172-31-10-253:~$ juju status
Model    Controller  Cloud/Region         Version  SLA          Timestamp
default  local       localhost/localhost  2.4.3    unsupported  17:28:40Z

App                    Version  Status  Scale  Charm                  Store       Rev  OS      Notes
easyrsa                3.0.1    active      1  easyrsa                jujucharms  112  ubuntu
etcd                   3.2.10   active      3  etcd                   jujucharms  199  ubuntu
flannel                0.10.0   active      5  flannel                jujucharms  139  ubuntu
kubeapi-load-balancer  1.14.0   active      1  kubeapi-load-balancer  jujucharms  152  ubuntu  exposed
kubernetes-master      1.12.0   active      2  kubernetes-master      jujucharms  208  ubuntu
kubernetes-worker      1.11.3   active      3  kubernetes-worker      jujucharms  229  ubuntu  exposed

Unit                      Workload  Agent  Machine  Public address  Ports           Message
easyrsa/0*                active    idle   0        10.83.45.104                    Certificate Authority connected.
etcd/0*                   active    idle   1        10.83.45.131    2379/tcp        Healthy with 3 known peers
etcd/1                    active    idle   2        10.83.45.145    2379/tcp        Healthy with 3 known peers
etcd/2                    active    idle   3        10.83.45.230    2379/tcp        Healthy with 3 known peers
kubeapi-load-balancer/0*  active    idle   4        10.83.45.216    443/tcp         Loadbalancer ready.
kubernetes-master/0       active    idle   5        10.83.45.205    6443/tcp        Kubernetes master running.
  flannel/1               active    idle            10.83.45.205                    Flannel subnet 10.1.59.1/24
kubernetes-master/1*      active    idle   6        10.83.45.242    6443/tcp        Kubernetes master running.
  flannel/0*              active    idle            10.83.45.242                    Flannel subnet 10.1.24.1/24
kubernetes-worker/0       active    idle   7        10.83.45.168    80/tcp,443/tcp  Kubernetes worker running.
  flannel/3               active    idle            10.83.45.168                    Flannel subnet 10.1.44.1/24
kubernetes-worker/1*      active    idle   8        10.83.45.184    80/tcp,443/tcp  Kubernetes worker running.
  flannel/2               active    idle            10.83.45.184                    Flannel subnet 10.1.14.1/24
kubernetes-worker/2       active    idle   9        10.83.45.26     80/tcp,443/tcp  Kubernetes worker running.
  flannel/4               active    idle            10.83.45.26                     Flannel subnet 10.1.28.1/24


## UPGRADE WORKERS

ubuntu@ip-172-31-10-253:~$ juju config kubernetes-worker channel=1.12/candidate

ubuntu@ip-172-31-10-253:~$ juju status
Model    Controller  Cloud/Region         Version  SLA          Timestamp
default  local       localhost/localhost  2.4.3    unsupported  17:30:43Z

App                    Version  Status   Scale  Charm                  Store       Rev  OS      Notes
easyrsa                3.0.1    active       1  easyrsa                jujucharms  112  ubuntu
etcd                   3.2.10   active       3  etcd                   jujucharms  199  ubuntu
flannel                0.10.0   active       5  flannel                jujucharms  139  ubuntu
kubeapi-load-balancer  1.14.0   active       1  kubeapi-load-balancer  jujucharms  152  ubuntu  exposed
kubernetes-master      1.12.0   active       2  kubernetes-master      jujucharms  208  ubuntu
kubernetes-worker      1.11.3   blocked      3  kubernetes-worker      jujucharms  229  ubuntu  exposed

Unit                      Workload  Agent  Machine  Public address  Ports           Message
easyrsa/0*                active    idle   0        10.83.45.104                    Certificate Authority connected.
etcd/0*                   active    idle   1        10.83.45.131    2379/tcp        Healthy with 3 known peers
etcd/1                    active    idle   2        10.83.45.145    2379/tcp        Healthy with 3 known peers
etcd/2                    active    idle   3        10.83.45.230    2379/tcp        Healthy with 3 known peers
kubeapi-load-balancer/0*  active    idle   4        10.83.45.216    443/tcp         Loadbalancer ready.
kubernetes-master/0       active    idle   5        10.83.45.205    6443/tcp        Kubernetes master running.
  flannel/1               active    idle            10.83.45.205                    Flannel subnet 10.1.59.1/24
kubernetes-master/1*      active    idle   6        10.83.45.242    6443/tcp        Kubernetes master running.
  flannel/0*              active    idle            10.83.45.242                    Flannel subnet 10.1.24.1/24
kubernetes-worker/0       blocked   idle   7        10.83.45.168    80/tcp,443/tcp  Needs manual upgrade, run the upgrade action
  flannel/3               active    idle            10.83.45.168                    Flannel subnet 10.1.44.1/24
kubernetes-worker/1*      blocked   idle   8        10.83.45.184    80/tcp,443/tcp  Needs manual upgrade, run the upgrade action
  flannel/2               active    idle            10.83.45.184                    Flannel subnet 10.1.14.1/24
kubernetes-worker/2       blocked   idle   9        10.83.45.26     80/tcp,443/tcp  Needs manual upgrade, run the upgrade action
  flannel/4               active    idle            10.83.45.26                     Flannel subnet 10.1.28.1/24

ubuntu@ip-172-31-10-253:~$ juju run-action kubernetes-worker/0 upgrade
Action queued with id: e6bc2217-fbd9-46d8-88f0-5d58f78e42ca

ubuntu@ip-172-31-10-253:~$ juju run-action kubernetes-worker/1 upgrade
Action queued with id: 4f231337-e04c-4518-8ce4-3d4e7e8fa591

ubuntu@ip-172-31-10-253:~$ juju run-action kubernetes-worker/2 upgrade
Action queued with id: 464e8f0d-1ade-4023-8854-6db8f95c5102

ubuntu@ip-172-31-10-253:~$ juju status
Model    Controller  Cloud/Region         Version  SLA          Timestamp
default  local       localhost/localhost  2.4.3    unsupported  17:32:07Z

App                    Version  Status  Scale  Charm                  Store       Rev  OS      Notes
easyrsa                3.0.1    active      1  easyrsa                jujucharms  112  ubuntu
etcd                   3.2.10   active      3  etcd                   jujucharms  199  ubuntu
flannel                0.10.0   active      5  flannel                jujucharms  139  ubuntu
kubeapi-load-balancer  1.14.0   active      1  kubeapi-load-balancer  jujucharms  152  ubuntu  exposed
kubernetes-master      1.12.0   active      2  kubernetes-master      jujucharms  208  ubuntu
kubernetes-worker      1.12.0   active      3  kubernetes-worker      jujucharms  229  ubuntu  exposed

Unit                      Workload  Agent  Machine  Public address  Ports           Message
easyrsa/0*                active    idle   0        10.83.45.104                    Certificate Authority connected.
etcd/0*                   active    idle   1        10.83.45.131    2379/tcp        Healthy with 3 known peers
etcd/1                    active    idle   2        10.83.45.145    2379/tcp        Healthy with 3 known peers
etcd/2                    active    idle   3        10.83.45.230    2379/tcp        Healthy with 3 known peers
kubeapi-load-balancer/0*  active    idle   4        10.83.45.216    443/tcp         Loadbalancer ready.
kubernetes-master/0       active    idle   5        10.83.45.205    6443/tcp        Kubernetes master running.
  flannel/1               active    idle            10.83.45.205                    Flannel subnet 10.1.59.1/24
kubernetes-master/1*      active    idle   6        10.83.45.242    6443/tcp        Kubernetes master running.
  flannel/0*              active    idle            10.83.45.242                    Flannel subnet 10.1.24.1/24
kubernetes-worker/0       active    idle   7        10.83.45.168    80/tcp,443/tcp  Kubernetes worker running.
  flannel/3               active    idle            10.83.45.168                    Flannel subnet 10.1.44.1/24
kubernetes-worker/1*      active    idle   8        10.83.45.184    80/tcp,443/tcp  Kubernetes worker running.
  flannel/2               active    idle            10.83.45.184                    Flannel subnet 10.1.14.1/24
kubernetes-worker/2       active    idle   9        10.83.45.26     80/tcp,443/tcp  Kubernetes worker running.
  flannel/4               active    idle            10.83.45.26                     Flannel subnet 10.1.28.1/24

ubuntu@ip-172-31-10-253:~$ juju ssh kubernetes-worker/0 '/snap/bin/kubectl get po --all-namespaces'
NAMESPACE     NAME                                               READY   STATUS    RESTARTS   AGE
default       default-http-backend-2xk2q                         1/1     Running   0          19m
default       nginx-ingress-kubernetes-worker-controller-9r496   1/1     Running   0          19m
default       nginx-ingress-kubernetes-worker-controller-n6t4l   1/1     Running   0          19m
default       nginx-ingress-kubernetes-worker-controller-qkg8l   1/1     Running   0          19m
kube-system   heapster-v1.6.0-beta.1-6db4b87d-84pxm              4/4     Running   0          4m6s
kube-system   kube-dns-596fbb8fbd-5vxjr                          3/3     Running   0          4m24s
kube-system   kubernetes-dashboard-6948bdb78-b22pq               1/1     Running   0          20m
kube-system   metrics-server-v0.3.1-67bb5c8d7-bkxn7              2/2     Running   0          4m8s
kube-system   monitoring-influxdb-grafana-v4-b54d59784-g5fxm     2/2     Running   0          20m

ubuntu@ip-172-31-10-253:~$ juju ssh kubernetes-worker/0 '/snap/bin/kubectl version'
Client Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.0", GitCommit:"0ed33881dc4355495f623c6f22e7dd0b7632b7c0", GitTreeState:"clean", BuildDate:"2018-09-27T17:05:32Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"12", GitVersion:"v1.12.0", GitCommit:"0ed33881dc4355495f623c6f22e7dd0b7632b7c0", GitTreeState:"clean", BuildDate:"2018-09-27T16:55:41Z", GoVersion:"go1.10.4", Compiler:"gc", Platform:"linux/amd64"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment