{"id":581,"date":"2018-06-06T04:15:42","date_gmt":"2018-06-06T12:15:42","guid":{"rendered":"http:\/\/andrewwippler.com\/?p=581"},"modified":"2018-06-06T04:21:09","modified_gmt":"2018-06-06T12:21:09","slug":"jenkins-x-on-home-kubernetes-cluster","status":"publish","type":"post","link":"https:\/\/andrewwippler.com\/2018\/06\/06\/jenkins-x-on-home-kubernetes-cluster\/","title":{"rendered":"Jenkins-x on home kubernetes cluster"},"content":{"rendered":"

Jenkins-x<\/a>\u00a0appears to be the next big thing in CI\/CD workflows – especially if you develop applications on kubernetes. There were a few tweaks I needed to do to set it up:<\/p>\n

    \n
  1. I had to manually create Persistent Volumes (no big deal, below are what I have for my NFS share)\n
    apiVersion: v1\nkind: PersistentVolume\nmetadata:\n  name: jenkins\n  namespace: jx\n  labels:\n    app: jenkins\nspec:\n  capacity:\n    storage: 30Gi\n  accessModes:\n    - ReadWriteOnce\n  nfs:\n    server: 192.168.0.101\n    path: \"\/volume1\/k8s\/jenkins\/jenkins\"\n---\napiVersion: v1\nkind: PersistentVolume\nmetadata:\n  name: jenkins-x-chartmuseum\n  namespace: jx\n  labels:\n    app: jenkins-x-chartmuseum\nspec:\n  capacity:\n    storage: 100Gi\n  accessModes:\n    - ReadWriteOnce\n  nfs:\n    server: 192.168.0.101\n    path: \"\/volume1\/k8s\/jenkins\/jenkins-x-chartmuseum\"\n---\napiVersion: v1\nkind: PersistentVolume\nmetadata:\n  name: jenkins-x-docker-registry\n  namespace: jx\n  labels:\n    app: jenkins-x-docker-registry\nspec:\n  capacity:\n    storage: 30Gi\n  accessModes:\n    - ReadWriteOnce\n  nfs:\n    server: 192.168.0.101\n    path: \"\/volume1\/k8s\/jenkins\/jenkins-x-docker-registry\"\n---\napiVersion: v1\nkind: PersistentVolume\nmetadata:\n  name: jenkins-x-mongodb\n  namespace: jx\n  labels:\n    app: jenkins-x-mongodb\nspec:\n  capacity:\n    storage: 30Gi\n  accessModes:\n    - ReadWriteOnce\n  nfs:\n    server: 192.168.0.101\n    path: \"\/volume1\/k8s\/jenkins\/jenkins-x-mongodb\"\n---\napiVersion: v1\nkind: PersistentVolume\nmetadata:\n  name: jenkins-x-nexus\n  namespace: jx\n  labels:\n    app: jenkins-x-nexus\nspec:\n  capacity:\n    storage: 30Gi\n  accessModes:\n    - ReadWriteOnce\n  nfs:\n    server: 192.168.0.101\n    path: \"\/volume1\/k8s\/jenkins\/jenkins-x-nexus\"<\/code><\/pre>\n<\/li>\n
  2. I had to modify the install line
    \njx install --ingress-namespace ingress-nginx --domain wplr.rocks --tls-acme true --skip-ingress<\/code><\/li>\n
  3. I had to modify the jenkins-x-mongodb<\/code> deployment to use image mongo:3.6.5-jessie<\/code>. Still wonder why people use bitnami images.<\/li>\n
  4. I had to\n
    securityContext:\n  runAsUser: 1024<\/code><\/pre>\n

    on\u00a0the jenkins-x-nexus<\/code> deployment. The container was trying to change permissions on my nfs mount. Not sure why my Synology NFS does not like permission changes.<\/li>\n<\/ol>\n

     <\/p>\n

    Even after those changes, jenkins-x-monocular-ui<\/code> still fails to start -_- … I have run out of time for now. More debugging to come later (MUCH MUCH later)<\/p>\n","protected":false},"excerpt":{"rendered":"

    Jenkins-x\u00a0appears to be the next big thing in CI\/CD workflows – especially if you develop applications on kubernetes. There were a few tweaks I needed to do to set it up: I had to manually create Persistent Volumes (no big deal, below are what I have for my NFS share) apiVersion: v1 kind: PersistentVolume metadata: […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[6],"tags":[51,84,83],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/andrewwippler.com\/wp-json\/wp\/v2\/posts\/581"}],"collection":[{"href":"https:\/\/andrewwippler.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andrewwippler.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andrewwippler.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/andrewwippler.com\/wp-json\/wp\/v2\/comments?post=581"}],"version-history":[{"count":3,"href":"https:\/\/andrewwippler.com\/wp-json\/wp\/v2\/posts\/581\/revisions"}],"predecessor-version":[{"id":584,"href":"https:\/\/andrewwippler.com\/wp-json\/wp\/v2\/posts\/581\/revisions\/584"}],"wp:attachment":[{"href":"https:\/\/andrewwippler.com\/wp-json\/wp\/v2\/media?parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andrewwippler.com\/wp-json\/wp\/v2\/categories?post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andrewwippler.com\/wp-json\/wp\/v2\/tags?post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}