- How-to guides
- Prepare to deploy
Prepare to deploy
This tutorial walks you through the two setup steps required before deploying NKP:
- creating a GitOps repository where
niccan commit app manifests - creating a
.envfile with your credentials
Provider-specific credentials and configuration are covered on each provider page.
GitOps repository
Section titled “GitOps repository”NIC uses GitOps: it commits ArgoCD app manifests to a Git repo you own and lets ArgoCD sync them into the cluster. For how this fits into the platform, see NKP architecture.
You'll need:
- A Git repo on any host reachable from the cluster (GitHub, GitLab, Bitbucket, self-hosted Gitea, etc.).
- A GitHub personal access token (
GIT_TOKEN) scoped to the GitOps repo with Contents: read+write. Go to github.com/settings/tokens?type=beta, choose Only select repositories, pick your GitOps repo, and generate.
Secrets and credentials
Section titled “Secrets and credentials”nic reads secrets from a .env file in the directory you run nic from (loaded via godotenv).
Ensure .env is in your .gitignore before you commit anything:
.envAdd your GitOps tokens to .env:
GIT_TOKEN=github_pat_... # read+write, used by nic during deployARGOCD_GIT_TOKEN=github_pat_... # optional, read-only; used by ArgoCD to pull manifestsYour provider's page lists the provider credentials (cloud keys or profiles) that also belong in this .env.