aboutsummaryrefslogtreecommitdiff
gcloud init
gcloud container clusters get-credentials standard-cluster-1

docker build -t trygvis/mi-gateway mi-gateway
docker push trygvis/mi-gateway
kubectl set image deployment mi-gateway-deployment mi-gateway=$(docker inspect --format='{{index .RepoDigests 0}}' trygvis/mi-gateway)

docker build -t trygvis/mi-processor mi-processor
docker push trygvis/mi-processor
kubectl set image deployment mi-processor-deployment mi-processor=$(docker inspect --format='{{index .RepoDigests 0}}' trygvis/mi-processor)

Secrets

kubectl create secret generic test-secret --from-literal=username='my-app' --from-literal=password='39528$vdg7Jb'

echo -n $password | base64
kubectl exec -it mi-gateway-pod -- /bin/bash

Kubernetes Dashboard

  • https://github.com/kubernetes/dashboard/wiki/Creating-sample-user

Getting bearer token

kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')

Local storage

  • https://github.com/rancher/local-path-provisioner

    kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml

Logging

  • https://www.digitalocean.com/community/tutorials/how-to-set-up-an-elasticsearch-fluentd-and-kibana-efk-logging-stack-on-kubernetes