Skip to content

Commit

Permalink
docu k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Sep 27, 2018
1 parent 3ec63ae commit 14cba93
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions docs/platform/kubernetes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,57 @@ storage a `StatefulSet` is deployed i.s.o. a regular `Deployment`.
Postgres/PostGIS is not deployed within K8s but accessed as an external
`Azure Database for PostgreSQL server` service from MS Azure.

Install
=======

Install clients.

Ubuntu
------

As follows: ::

#
# 1) Install AZ CLI
#
# https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest
$ AZ_REPO=$(lsb_release -cs)
$ echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $AZ_REPO main" | \
sudo tee /etc/apt/sources.list.d/azure-cli.list

# Check
$ more /etc/apt/sources.list.d/azure-cli.list
deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ xenial main

# Get signing key
$ curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -

# Install
$ apt-get update
# Problem: https://github.com/Microsoft/WSL/issues/2775
$ apt-get install python-dev build-essential libffi-dev libssl-dev
$ apt-get install apt-transport-https azure-cli

#
# 2) Install kubectl
#
$ az aks install-cli
$ which kubectl
/usr/local/bin/kubectl

#
# 3) Get cluster creds
#
$ az aks get-credentials --resource-group <rsc group name> --name <cluster name>
# View config
$ kubectl config view
#
# 4) Open k8s dashboard in browser
#
$ az aks browse --resource-group <rsc group name> --name <cluster name>


Links
=====

Expand Down

0 comments on commit 14cba93

Please sign in to comment.