- Allow port input on 443 fo the azure instance
- Grab the cluster conf (.kube/config) to the local machine
- Install kubectl on the local machine
- Make sure you can access the cluster
- On local, run kubectl proxy (this is specific to do port forwarding for the dashboard itself)
- Connect to URL:
- Get the token to use for logging in: kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')
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: Pod | |
| metadata: | |
| annotations: | |
| io.kubernetes.cri-o.TrustedSandbox: "false" | |
| name: ubuntu-pod-untrusted | |
| spec: | |
| containers: | |
| - name: ubuntu | |
| image: "ubuntu:14.04" |
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: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| name: kubelet-cri-o-kata-cleanup | |
| namespace: kube-system | |
| spec: | |
| selector: | |
| matchLabels: | |
| name: kubelet-cri-o-kata-cleanup |
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: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| name: kubelet-runtime-labeler | |
| namespace: kube-system | |
| spec: | |
| selector: | |
| matchLabels: | |
| name: kubelet-runtime-labeler |
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
| echo "Install Utilities" | |
| sudo dnf -y install tc go git wget unzip vim | |
| echo 'export GOPATH="$HOME/go"' | sudo tee -a /etc/profile | |
| echo 'export PATH="$PATH:$GOPATH/bin"' | sudo tee -a /etc/profile | |
| source /etc/profile | |
| VERSION="1.1.0" | |
| echo "Install Containerd ${VERSION}" | |
| wget -q https://storage.googleapis.com/cri-containerd-release/cri-containerd-${VERSION}.linux-amd64.tar.gz | |
| sudo tar -C / -xzf cri-containerd-${VERSION}.linux-amd64.tar.gz |
runc for server:
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
18:24:09.613883 IP eernstworkstation.jf.intel.com.43538 > da1195437397.9042: Flags [S], seq 1860814498, win 29200, options [mss 1460,sackOK,TS val 124369660 ecr 0,nop,wscale 7], length 0
18:24:09.613936 IP da1195437397.9042 > eernstworkstation.jf.intel.com.43538: Flags [S.], seq 1124812268, ack 1860814499, win 43440, options [mss 1460,sackOK,TS val 1315418715 ecr 124369660,nop,wscale 13], length 0
18:24:09.614438 IP da1195437397.47272 > corpdns.intel.com.domain: 44776+ PTR? 165.200.7.10.in-addr.arpa. (43)
18:24:09.614459 IP eernstworkstation.jf.intel.com.43538 > da1195437397.9042: Flags [.], ack 1, win 229, options [nop,nop,TS val 124369661 ecr 1315418715], length 0
18:24:09.615015 IP corpdns.intel.com.domain > da1195437397.47272: 44776* 1/0/0 PTR eernstworkstation.jf.intel.com. (87)
18:24:09.615279 IP da1195437397.35770 > corpdns.intel.com.domain: 616+ PTR? 1.2.248.10.in-addr.arpa. (41)
18:24:09.615874 IP corpdns.i
$ sudo kata-runtime list
ID PID STATUS BUNDLE CREATED OWNER
f9c27becce8ce678523313eca093ae64c45bf51d67a7493190de3048e3a45dac 22859 running /run/containers/storage/overlay-containers/f9c27becce8ce678523313eca093ae64c45bf51d67a7493190de3048e3a45dac/userdata 2018-08-09T04:15:38.169158318Z #0
296c0247716df5c89663c07fc0383f346933aa7214ab5234b2809f7eb66bef44 22972 stopped /run/containers/storage/overlay-containers/296c0247716df5c89663c07fc0383f346933aa7214ab5234b2809f7eb66bef44/userdata 2018-08-09T04:15:39.411160174Z #0
a64f8601f98eb3c9171505713aca2cce6e53b271a607690b8c72f4fd418e7863 24169 running /run/containers/storage/overlay-containers/a64f8601f98eb3c9171505713aca2cce6e53b271a607690b8c72f4fd418e7863/userdata 2018-08-09T04:17:24.713274953Z #0
f51cba19
Directions below are executed on a Ubuntu 18.04 on an Azure VM (standard D2s v3 node)
Install latest stable docker:
sudo -E apt-get -y install apt-transport-https ca-certificates software-properties-common
curl -sL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
arch=$(dpkg --print-architecture)