kubernetes

kubernetes support for docker-compose

Originally kubernetes offered Kompose, which lets you quickly ramp up to Kubernetes by turning your existing docker-compose.yml file into Kubernetes resources. At the end of 2018 docker announced Compose on Kubernetes. The Kompose team state that they’ll continue to support Kompose.

kubernetes on azure

Push your first image to a private Docker container registry using the Docker CLI

Authenticate with Azure Container Registry from Azure Kubernetes Service

Getting Started with AKS and a private Azure Container Registry

edit with visual studio code (vscode)

Set the KUBE_EDITOR environment variable to code -w. Then you can do stuff like

kubectl edit deployment -n kube-system kube-dns-v20

building prometheus inside a container

Don’t install go, instead build it inside the go container;

docker run --rm -v %CD%:/go/src/github.com/prometheus/prometheus -w /go/src/github.com/prometheus/prometheus golang:1.10 make build

Run it inside that docker container too!

docker run --rm -v %CD%:/go/src/github.com/prometheus/prometheus -w /go/src/github.com/prometheus/prometheus -p 9090:9090 golang:1.10 ./prometheus

Note: I executed the following to have it use a test config;

copy ./config/testdata/conf.good.yml ./prometheus.yml