Aquesta és una revisió antiga del document
Sesión 16 prometheus on kubernetes
google cloud
gcloud config set compute/zone europe-west1-b← (https://cloud.google.com/compute/docs/regions-zones/)gcloud container clusters create bootcamp --num-nodes 3 --scopes «https://www.googleapis.com/auth/projecthosting,storage-rw»gcloud container clusters list- en local, con las utilidades G instaladas:
gcloud container clusters get-credentials bootcamp --zone europe-west1-b --project <project> - y para eliminar después el cluster:
gcloud container clusters delete bootcamp
helm
k apply -f create-helm-service-account.yaml- create-helm-service-account.yaml
# This is an extract from here: http://jayunit100.blogspot.fi/2017/07/helm-on.html apiVersion: v1 kind: ServiceAccount metadata: name: helm namespace: kube-system --- apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: name: helm roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: helm namespace: kube-system
- obtener password:
gcloud container clusters describe bootcamp –zone europe-west1-b –project caramel-era-236111- igual no necesario
- inicializamos helm
helm init –service-account helm k get deploy,svc tiller-deploy -n kube-system- creamos para deployar:
helm create samplechart - deployamos:
helm install –name helm-test ./samplechart –set service.type=LoadBalancer - vemos el deploy:
k get svc - comprobación de nuestro NGINX desplegado:
curl 34.76.180.246