Skip to content

Getting started#

This guide takes you from your first login to a running application with a database, secrets, a domain and dashboards. Work through it top to bottom; each chapter links to the detailed pages of the user guide.

Throughout the guide, replace the placeholders with the values you received from us:

Placeholder Meaning Example
<org> Your organization acme
<project> Your project shop

What you get#

What Where
Kubernetes cluster https://api.workload.<org>.kloudease.tech, for kubectl with your kubeconfig (not for the browser)
Login for everything https://auth.kloudease.tech/realms/<org>/account
GitOps repository the Git repository you agreed with us
Secrets (OpenBao) https://secrets.<org>.kloudease.tech, namespace <org>
Dashboards, metrics and logs (Perses) https://monitoring.<org>.kloudease.tech, project <project>
Your domains every name under *.workload.<project>.<org>.kloudease.tech

One login covers all of them.

A sandbox cluster has no wildcard domain, no Let's Encrypt HTTP-01 issuer, no metrics and no logs.

1. Sign in#

Open https://auth.kloudease.tech/realms/<org>/account and sign in. How depends on who you are:

You are Sign in with
Working for AOE Choose AOE on the login page and use your AOE account
Working for a company whose login we connected Choose your company's button on the login page
Anyone else The user we created for you; you set your password on the first login

If you are not sure which applies to you, ask kloudease Support.

What you may do depends on your role in the project:

Role What it allows
admin What developer may do, plus Flux HelmReleases, kubectl exec, port-forwarding, and creating or deleting namespaces
developer Create, change and delete workloads, Services, Ingresses, NetworkPolicies, Secrets, ExternalSecrets and monitors; no exec, no Flux releases
viewer Read only. No Secrets in Kubernetes; in OpenBao, reads your project's kv secrets

admin is a fixed list, not everything: no role creates Roles, RoleBindings, cert-manager Certificates or Issuers, Traefik IngressRoutes or Middlewares, Flux Kustomizations or GitRepositorys, PrometheusRules, ScrapeConfigs, Probes, ResourceQuotas or LimitRanges. Namespaces can be created and deleted, not changed or labelled.

Ask us if you need a different role. The Roles Reference lists every permission.

2. Connect with kubectl#

Install kubectl and kubelogin (kubectl oidc-login). We send you a kubeconfig file. It contains no password: kubelogin opens your browser and signs you in when you need a token.

export KUBECONFIG=/path/to/workload-kubeconfig.yaml
kubectl get namespaces

The first command opens the browser for the login. After that, kubectl works as usual.

3. Deploy through Git#

Your cluster follows one folder of your GitOps repository, the one we agreed with you. Flux reads it every few minutes and applies it with your project's admin rights. What is in Git is what runs, and what you remove from Git is removed from the cluster. You can use kubectl for testing, but Flux overwrites anything that Git describes.

The Flux object that applies your folder runs in kube-system, so you can't see its status. If a change doesn't show up in the cluster, ask kloudease Support.

A minimal application in that folder:

# namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
  name: my-app

Give every namespaced object a metadata.namespace. Without it, the object lands in default, which belongs to the platform, and is refused.

Platform namespaces are off limits: default, kube-system, kube-public, kube-node-lease, flux-system, every namespace starting with k7e- and every namespace labelled k7e.tech/platform. You can't create namespaces starting with k7e-.

In a new namespace, your access is set up a few seconds after the namespace exists. If Flux applies the namespace and its content in one go, the first attempt can fail; Flux retries about a minute later, and that attempt succeeds.

Helm charts#

Install a Helm chart with a Flux HelmRelease and its HelmRepository or OCIRepository, both in your application's namespace. The release must run as the namespace's customer-flux account:

Every HelmRelease needs serviceAccountName: customer-flux

The cluster refuses a HelmRelease without it, and one whose chart source or target namespace is in another namespace. Check existing releases before you move them to this cluster.

apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
  name: podinfo
  namespace: my-app
spec:
  interval: 1h
  url: https://stefanprodan.github.io/podinfo
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
  name: podinfo
  namespace: my-app
spec:
  interval: 10m
  serviceAccountName: customer-flux   # required
  chart:
    spec:
      chart: podinfo
      version: "6.x"
      sourceRef:
        kind: HelmRepository
        name: podinfo                 # in the same namespace
  values:
    # The cluster runs containers as non-root. podinfo's image names its user
    # instead of giving a number, so set a numeric one.
    securityContext:
      runAsUser: 10001
      runAsGroup: 10001
  • Chart sources use https:// or oci://; http:// and spec.insecure are refused.
  • The chart is installed into its own namespace only. spec.kubeConfig and a storageNamespace in another namespace are refused.
  • Charts may bring their own Role, RoleBinding and leader-election Lease for their own accounts. Their RoleBindings may not bind system: users or groups, and no pod may run as customer-flux.
  • Apart from those, a chart installs only the kinds developer may create. A chart that brings a Certificate, IngressRoute, PrometheusRule or another kind outside that list fails.
  • Charts that create cluster-wide objects (CRDs, ClusterRole, ClusterRoleBinding) don't install. Tell us if you need one.

For our own chart, read Using workload-helm first.

Concepts explains who applies what in your cluster.

4. Secrets#

Never put a secret into Git. Store it in OpenBao and read it into the cluster with an ExternalSecret.

OpenBao has two places for your project:

Mount Path Who writes
kv <project>/… You: your own secrets
services <project>/… We: credentials of the databases and buckets we provide. You can read them, not change them.

To use the web interface, open https://secrets.<org>.kloudease.tech, enter the namespace <org>, choose OIDC and sign in. Open kv or services, then your project folder <project>. You also see the folder names of your organization's other projects, but not what is inside them.

To write a secret with the OpenBao CLI:

export VAULT_ADDR=https://secrets.<org>.kloudease.tech VAULT_NAMESPACE=<org>
vault login -method=oidc
vault kv put -mount=kv <project>/my-app password=-   # reads the value from stdin

Read it in the cluster:

apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: my-app
  namespace: my-app
spec:
  refreshInterval: 1h
  secretStoreRef:
    kind: ClusterSecretStore
    name: openbao-kv
  target:
    name: my-app            # the Kubernetes Secret that is created
  data:
    - secretKey: password
      remoteRef:
        key: <project>/my-app
        property: password

Your cluster can read everything under kv/<project>/ and services/<project>/, nothing of other projects. Writing to kv needs the admin or developer role; viewer can only read.

Use the stores openbao-kv and openbao-services the cluster provides. You can't create a SecretStore, ClusterSecretStore, ClusterExternalSecret or PushSecret.

Image pull secrets#

Images from a private registry need a pull secret. Store the registry login in OpenBao and let an ExternalSecret build the pull secret:

vault kv put -mount=kv <project>/registry username=<user> password=-
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: registry
  namespace: my-app
spec:
  refreshInterval: 1h
  secretStoreRef:
    kind: ClusterSecretStore
    name: openbao-kv
  target:
    name: registry
    template:
      type: kubernetes.io/dockerconfigjson
      data:
        .dockerconfigjson: '{"auths":{"registry.example.com":{"auth":"{{ printf "%s:%s" .username .password | b64enc }}"}}}'
  data:
    - secretKey: username
      remoteRef:
        key: <project>/registry
        property: username
    - secretKey: password
      remoteRef:
        key: <project>/registry
        property: password

Reference it in your pods with imagePullSecrets: [{name: registry}].

Your GitOps repository token#

Flux reads your GitOps repository with an access token stored in OpenBao kv, keys username and token. We tell you the path; usually it is <project>/<cluster>/gitops. The token belongs to you, and you rotate it before it expires (this needs the admin or developer role):

  1. Create a new project access token for the repository, role Reporter, scope read_repository.
  2. Write it to OpenBao: vault kv put -mount=kv <project>/<cluster>/gitops username=<user> token=-
  3. Wait at least one hour. The cluster picks up the new value within that time.
  4. Revoke the old token.

If the token expires, the cluster keeps running what it has, but stops applying changes from Git.

5. Database and object storage#

We provide databases and buckets for you; you get the instance names from us. Their connection details are in OpenBao, mount services. Read them with the store openbao-services.

Service OpenBao path Keys
PostgreSQL <project>/cnpg/<instance>/app username, password, dbname, host, port, uri
PostgreSQL server CA <project>/cnpg/<instance>/ca ca.crt
Object storage (S3) <project>/s3/<instance>/credentials bucket, access_key_id, secret_access_key, endpoint, region, url_path_style, url_virtual_hosted_style

Example for the database:

apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
  name: database
  namespace: my-app
spec:
  refreshInterval: 1h
  secretStoreRef:
    kind: ClusterSecretStore
    name: openbao-services
  target:
    name: database
  dataFrom:
    - extract:
        key: <project>/cnpg/<instance>/app

Read the host, bucket name and endpoint from the secret. Don't write them into your code: they change when we move a service.

The database is reachable at <instance>.<project>.pg.<org>.kloudease.tech:5432, but only from the addresses we allowed. Tell us the egress IPs of the clusters that connect to it. TLS is required; uri already contains sslmode=verify-full, and ca.crt verifies the server.

More in Postgres and Object Storage.

6. Domains and TLS#

Every name under *.workload.<project>.<org>.kloudease.tech already points at your cluster. An Ingress with the annotation below gets a certificate from Let's Encrypt automatically:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: my-app
  namespace: my-app
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod-http
spec:
  rules:
    - host: my-app.workload.<project>.<org>.kloudease.tech
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: my-app
                port:
                  name: http
  tls:
    - hosts:
        - my-app.workload.<project>.<org>.kloudease.tech
      secretName: my-app-tls

For your own domain, create a CNAME record pointing at any name under *.workload.<project>.<org>.kloudease.tech, then use your domain in the Ingress the same way. If your cluster only accepts traffic from an IP allowlist, Let's Encrypt can't reach it; contact kloudease Support for a certificate. Domains and Ingress have the details.

7. Metrics and logs#

The cluster collects the logs of every container in your namespaces and the basic metrics of your workloads (CPU, memory, restarts, pod status). Find both in Perses: https://monitoring.<org>.kloudease.tech, project <project>.

To collect your application's own metrics, add a ServiceMonitor or PodMonitor in its namespace:

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: my-app
  namespace: my-app
spec:
  selector:
    matchLabels:
      app: my-app
  endpoints:
    - port: metrics

Logs are kept for 30 days, metrics for 40 days. You don't need to label anything for logs or monitors to be picked up. A monitor may only watch its own namespace. It may not set honorLabels: true or change the job or namespace labels.

More in Perses, Logs and Metrics.

8. Rules the cluster enforces#

The cluster refuses:

  • namespaces starting with k7e-
  • privileged containers, hostNetwork, hostPID, hostIPC, hostPath volumes and hostPort
  • added Linux capabilities beyond the Kubernetes "baseline" set (for example NET_BIND_SERVICE is fine, SYS_ADMIN and NET_ADMIN are not)
  • seccomp or AppArmor set to Unconfined
  • allowPrivilegeEscalation: true, and procMount other than Default
  • priority classes starting with system-, gardener- or k7e-
  • writing Endpoints or EndpointSlices by hand (Services with a selector work as usual)
  • the Traefik annotation traefik.ingress.kubernetes.io/router.priority on an Ingress

Platform namespaces don't accept connections from your pods, except the ingress controller. Reach platform services through their public addresses, as listed under What you get.

The cluster changes, if you don't set them yourself:

  • Containers run as non-root. Use an image with a numeric non-root user, or set runAsUser.
  • Containers without any securityContext lose their Linux capabilities (capabilities.drop: [ALL], allowPrivilegeEscalation: false). Images that change file owners or users at start (CHOWN, SETUID) or listen on port 80 as non-root then fail. Set a securityContext that adds what the image needs, or let it listen on a port above 1024.
  • Service accounts get no API token. If your application talks to the Kubernetes API, label its ServiceAccount with k7e.tech/automount-service-account-token: "true", or set automountServiceAccountToken: true on the ServiceAccount or pod.

We record the following, but you get no warning yet:

  • containers without limits.memory, requests.cpu and requests.memory
  • images without a tag or with :latest

Both will be refused in an upcoming release. Set them from the start, so your workloads keep deploying when that happens.

9. Not there yet#

  • Alerts for your applications. We are alerted when the platform has a problem. Alerts about your own applications, with your own rules and receivers, are coming in the next weeks. Until then, build a dashboard in Perses for what matters to you (for example restarts of your pods or errors in your logs) and look at it regularly.
  • Ready-made dashboards for your applications. Managed services such as databases and buckets bring their own dashboards; for your own applications you build the dashboards you need.
  • Backups. Neither volumes nor databases are backed up yet. Export data you can't lose yourself, for example with pg_dump.

Support#

See Support.