hb-chen / ks-devops

KubeSphere DevOps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get started

  1. Install KubeSphere via kk (or other ways). This is an optional step, basically we need a Kubernetes Cluster and the front-end of DevOps.
  2. Install ks-jenkins via enabling the DevOps component in KubeSphere (Remove this step after we combine Jenkins chart with ks-devops)
  3. Install ks-devops via chart

In current phase, we need to use a temporary images of KubeSphere which comes from the branch remove-devops-ctrl:

  • kubespheredev/ks-apiserver:remove-devops-ctrl
  • kubespheredev/ks-controller-manager:remove-devops-ctrl

KubeSphere is a proxy for ks-devops. We need to tell it the address of ks-devops. Please change the ConfigMap of kubesphere-config in namespace kubesphere-system:

devops:
  enable: false
  devopsServiceAddress: 127.0.0.1:9091

Run it locally

Technically, apiserver and controller are all binary files. So, it's possible to run them in your local environment. You just need to make sure that the connection between your environment and a Kubernetes cluster works well. This is a default config file of these components, please see also the sample file.

Create Pipeline via CLI

ks is an official client of KubeSphere. You can create a Pipeline by it.

ks pip create --ws simple --template java --project default --skip-check -b good

APIs

For example, you can access an API like:

curl http://ip:30880/kapis/clusters/host/devops.kubesphere.io/v1alpha3/devops/test847h4/credentials

TODO

  • A separate front-end project of ks-devops
  • Add a Helm chart for s2i-operator
  • Migrate Jenkins Helm chart from ks-installer
  • Auth support
    • OIDC support as a default provider

About

KubeSphere DevOps


Languages

Language:Go 98.4%Language:Smarty 0.5%Language:Shell 0.5%Language:Makefile 0.4%Language:Dockerfile 0.2%Language:Mustache 0.1%