Uploaded image for project: 'Logging analytics'
  1. Logging analytics
  2. LOG-372

K8S DevOps: add jenkins helm chart

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • Dublin Release
    • None
    • None

      OOM-417

      root@ip-10-0-0-251:~# helm install --name my-release stable/jenkins
      NAME:   my-release
      LAST DEPLOYED: Sat Apr 21 16:20:04 2018
      NAMESPACE: default
      STATUS: DEPLOYED
      
      RESOURCES:
      ==> v1/Secret
      NAME                TYPE    DATA  AGE
      my-release-jenkins  Opaque  2     0s
      
      ==> v1/ConfigMap
      NAME                      DATA  AGE
      my-release-jenkins        3     0s
      my-release-jenkins-tests  1     0s
      
      ==> v1/PersistentVolumeClaim
      NAME                STATUS   VOLUME  CAPACITY  ACCESS MODES  STORAGECLASS  AGE
      my-release-jenkins  Pending  0s
      
      ==> v1/Service
      NAME                      TYPE          CLUSTER-IP    EXTERNAL-IP  PORT(S)         AGE
      my-release-jenkins-agent  ClusterIP     10.43.52.123  <none>       50000/TCP       0s
      my-release-jenkins        LoadBalancer  10.43.192.50  <pending>    8080:31994/TCP  0s
      
      ==> v1beta1/Deployment
      NAME                DESIRED  CURRENT  UP-TO-DATE  AVAILABLE  AGE
      my-release-jenkins  1        1        1           0          0s
      
      ==> v1/Pod(related)
      NAME                                 READY  STATUS   RESTARTS  AGE
      my-release-jenkins-5c6ddf6b9d-2rgr5  0/1    Pending  0         0s
      
      
      NOTES:
      1. Get your 'admin' user password by running:
        printf $(kubectl get secret --namespace default my-release-jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo
      2. Get the Jenkins URL to visit by running these commands in the same shell:
        NOTE: It may take a few minutes for the LoadBalancer IP to be available.
              You can watch the status of by running 'kubectl get svc --namespace default -w my-release-jenkins'
        export SERVICE_IP=$(kubectl get svc --namespace default my-release-jenkins --template "{{ range (index .status.loadBalancer.ingress 0) }}{{ . }}{{ end }}")
        echo http://$SERVICE_IP:8080/login
      
      3. Login with the password from step 1 and the username: admin
      
      For more information on running Jenkins on Kubernetes, visit:
      https://cloud.google.com/solutions/jenkins-on-container-engine
      
      root@ip-10-0-0-251:~# printf $(kubectl get secret --namespace default my-release-jenkins -o jsonpath="{.data.jenkins-admin-password}" | base64 --decode);echo
      XR3AIJpDDh
      root@ip-10-0-0-251:~# kubectl get services --all-namespaces
      NAMESPACE     NAME                              TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)          AGE
      default       knobby-anaconda-docker-registry   ClusterIP      10.43.145.100   <none>        5000/TCP         11m
      default       kubernetes                        ClusterIP      10.43.0.1       <none>        443/TCP          20h
      default       my-release-jenkins                LoadBalancer   10.43.192.50    172.17.0.1    8080:31994/TCP   38s
      default       my-release-jenkins-agent          ClusterIP      10.43.52.123    <none>        50000/TCP        38s
      kube-system   heapster                          ClusterIP      10.43.189.149   <none>        80/TCP           20h
      kube-system   kube-dns                          ClusterIP      10.43.0.10      <none>        53/UDP,53/TCP    20h
      kube-system   kubernetes-dashboard              ClusterIP      10.43.12.216    <none>        80/TCP           20h
      kube-system   monitoring-grafana                ClusterIP      10.43.224.210   <none>        80/TCP           20h
      kube-system   monitoring-influxdb               ClusterIP      10.43.114.249   <none>        8086/TCP         20h
      kube-system   tiller-deploy                     ClusterIP      10.43.98.8      <none>        44134/TCP        20h
      
      

      http://devops.onap.info:8880/r/projects/1a7/kubernetes-dashboard:9090/#!/overview?namespace=_all
      PersistentVolumeClaim is not bound: "my-release-jenkins"

            michaelobrien michaelobrien
            michaelobrien michaelobrien
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: