Keptn v1 reached EOL December 22, 2023. For more information see
This documentation is for an older Keptn release. Please consider the newest one when working with the latest Keptn.


After creating a project, Keptn allows creating a service or onboarding a service into Keptn. The difference between creating and onboarding is as follows:

  • Create a service: This creates a new and empty service in the specified project. This option is used when not deploying a service with Keptn.

  • Onboard a service: This creates a new service and uploads the configuration to deploy the service. The configuration has to be a Helm Chart.

Service name restrictions

  • Service name must be a valid unix directory name (Note: for each service a directory with the corresponding name is created in the upstream git repository)
  • Keptn Version >= 0.8.3: Service name must be less than 43 characters (Note: template was reduced to ${SERVICE}-generated to allow longer service names)

Create a service

  • To create a service, use the keptn create service command and provide the service and project name (--project flag/):
keptn create service SERVICENAME --project=PROJECTNAME

Onboard a service

For describing the deployable Kubernetes resources of a service that gets onboarded, Helm charts are used with the following requirements:

  1. The Helm chart has to contain exactly one deployment. In this deployment, the properties and have to be set.

  2. The Helm chart has to contain exactly one service. In this service, the property has to be set.

  3. The Helm chart has to contain a values.yaml file with at least the image and replicaCount parameter for the deployment. These image and replicaCount parameters have to be used in the deployment. An example is shown below:

replicaCount: 1
apiVersion: apps/v1
kind: Deployment
  name: your_deployment
  replicas: {{ .Values.replicaCount }}
      app: your_service
        app: your_service
      - name: your_service
        image: "{{ .Values.image }}"

Note: If you are using custom configurations and you would like to have the environment variables KEPTN_PROJECT, KEPTN_STAGE, and KEPTN_SERVICE within your service, add the following environment variables to your deployment configuration.

  value: "{{ .Chart.Name }}"
      fieldPath: "metadata.namespace"
  value: "{{ }}"

Onboard a service:

  • To onboard a service, use the keptn onboard service command and provide the service name, project name (--project flag), and the root directory of a Helm chart (--chart flag/):
keptn onboard service SERVICENAME --project=PROJECTNAME --chart=FILEPATH
  • If you have already an archived Helm chart, the archive with ending .tgz can be referenced. In this case, the Helm chart will be stored unpacked.
keptn onboard service SERVICENAME --project=PROJECTNAME --chart=HELM_CHART.tgz
keptn create service SERVICENAME --project=PROJECTNAME
keptn add-resource --project=PROJECTNAME --service=SERVICENAME --all-stages --resource=HELM_CHART.tgz --resourceUri=helm/SERVICENAME.tgz