tencent cloud


Deploying Jenkins on TKE

Last updated: 2022-06-10 16:48:46


    Many DevOps requirements need to be implemented with Jenkins. This document describes how to deploy Jenkins in TKE.


    You have created a TKE cluster.


    Installing Jenkins

    1. Log in to the TKE console and click Marketplace on the left sidebar.
    2. On the Marketplace page, search for Jenkins and enter the Jenkins application page.
    3. Click Create Application and configure values.yaml in Parameters as needed.
    4. Click Create.

    Exposing Jenkins UI

    By default, you can't access the Jenkins UI outside the cluster. To access it, you can use an Ingress. TKE provides CLB type Ingress and Nginx type Ingress for your choice.

    Logging in to Jenkins

    On the Jenkins UI, enter the initial username and password to log in to the Jenkins backend. The username is admin, and the password can be obtained by running the following command.

    kubectl -n devops get secret jenkins -o jsonpath='{.data.jenkins-admin-password}' | base64 -d

    When running the above command, replace the text with the actual namespace.

    Creating user

    We recommend you manage Jenkins as a general user. Before creating a general user, you need to configure an authentication and authorization policy.

    1. Log in to the Jenkins backend and click Dashboard > Manage Jenkins > Security > Configure Global Security to enter the authentication and authorization policy page as shown below:
    • Security Realm: Select Jenkins' own user database.
    • Authorization: Select Logged-in users can do anything.
    1. Click Dashboard > Manage Jenkins > Security > Manage Users > Create User and create a user as prompted as shown below:
      • Username: Enter the username.
      • Password: Enter the password.
      • Confirm password: Confirm the password.
      • Full name: Enter the full username.
    2. Click Create User.

    Installing plugin

    Log in to the Jenkins backend and click Dashboard > Manage Jenkins > System Configuration > Manage Plugins to enter the plugin management page.

    You can install the following commonly used plugins:

    • kubernetes
    • pipeline
    • git
    • gitlab
    • github
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support