Aquesta és una revisió antiga del document


Sesión 16 prometheus on kubernetes

  • 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 helmhelm 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
  • info/cursos/pue/devops/sesion16.1554536748.txt.gz
  • Darrera modificació: 06/04/2019 00:45
  • per mate