The Kustomize task applies Kubernetes kustomizations.
10K+
The Kustomize step container applies Kubernetes kustomizations.
| Setting | Child setting | Data type | Description | Default | Required |
|---|---|---|---|---|---|
cluster | mapping | A map of configuration and credentials for accessing a Kubernetes cluster. | None | True | |
name | string | A name for the Kubernetes cluster. Used for referencing it via kubectl contexts. | None | True | |
url | string | The URL to the Kubernetes cluster master. You can pass the URL to Nebula as a secret. See the example below. | None | True | |
cadata | string | A file containing the Kubernetes master CA contents. Pass the file contents to Nebula as a secret. See the example below. | None | True | |
token | string | A token for the Kubernetes master. You can pass the token to Nebula as a secret. See the example below. | None | True | |
path | string | A path to the kustomization resources. | None | True | |
namespace | string | The namespace to run the command under. | default | False | |
git | mapping | A map of git configuration. If you're using HTTPS, only name and repository are required. | None | False | |
ssh_key | string | The SSH key to use when cloning the git repository. You can pass the key to Nebula as a secret. See the example below. | None | True | |
known_hosts | string | SSH known hosts file. Use a Nebula secret to pass the contents of the file into the workflow as a base64-encoded string. See the example below. | None | True | |
name | string | A directory name for the git clone. | None | True | |
branch | string | The Git branch to clone. | master | False | |
repository | string | The git repository URL. | None | True |
Note: The value you set for a secret must be a string. If you have multiple key-value pairs to pass into the secret, or your secret is the contents of a file, you must encode the values using base64 encoding, and use the encoded string as the secret value.
Here is an example of the step in a Nebula workflow:
steps:
...
- name: kustomize
image: projectnebula/kustomize:latest
spec:
cluster:
name: my-cluster
url:
$type: Secret
name: url
cadata:
$type: Secret
name: cadata
token:
$type: Secret
name: token
path: /infra/app
namespace: my-namespace
git:
ssh_key:
$type: Secret
name: ssh_key
known_hosts:
$type: Secret
name: known_hosts
name: my-git-repo
branch: dev
repository: path/to/your/repo
Content type
Image
Digest
Size
36.4 MB
Last updated
over 6 years ago
docker pull projectnebula/kustomize