mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
3.1 KiB
Markdown
77 lines
3.1 KiB
Markdown
4 years ago
|
## flux create kustomization
|
||
5 years ago
|
|
||
5 years ago
|
Create or update a Kustomization resource
|
||
5 years ago
|
|
||
|
### Synopsis
|
||
|
|
||
4 years ago
|
The kustomization source create command generates a Kustomize resource for a given source.
|
||
5 years ago
|
|
||
|
```
|
||
4 years ago
|
flux create kustomization [name] [flags]
|
||
5 years ago
|
```
|
||
|
|
||
|
### Examples
|
||
|
|
||
|
```
|
||
5 years ago
|
# Create a Kustomization resource from a source at a given path
|
||
4 years ago
|
flux create kustomization contour \
|
||
5 years ago
|
--source=contour \
|
||
|
--path="./examples/contour/" \
|
||
5 years ago
|
--prune=true \
|
||
5 years ago
|
--interval=10m \
|
||
5 years ago
|
--validation=client \
|
||
5 years ago
|
--health-check="Deployment/contour.projectcontour" \
|
||
|
--health-check="DaemonSet/envoy.projectcontour" \
|
||
|
--health-check-timeout=3m
|
||
|
|
||
5 years ago
|
# Create a Kustomization resource that depends on the previous one
|
||
4 years ago
|
flux create kustomization webapp \
|
||
5 years ago
|
--depends-on=contour \
|
||
|
--source=webapp \
|
||
|
--path="./deploy/overlays/dev" \
|
||
5 years ago
|
--prune=true \
|
||
5 years ago
|
--interval=5m \
|
||
5 years ago
|
--validation=client
|
||
5 years ago
|
|
||
4 years ago
|
# Create a Kustomization resource that references a Bucket
|
||
4 years ago
|
flux create kustomization secrets \
|
||
4 years ago
|
--source=Bucket/secrets \
|
||
5 years ago
|
--prune=true \
|
||
4 years ago
|
--interval=5m
|
||
5 years ago
|
|
||
5 years ago
|
```
|
||
|
|
||
|
### Options
|
||
|
|
||
|
```
|
||
4 years ago
|
--decryption-provider decryptionProvider decryption provider, available options are: (sops)
|
||
|
--decryption-secret string set the Kubernetes secret name that contains the OpenPGP private keys used for sops decryption
|
||
|
--depends-on stringArray Kustomization that must be ready before this Kustomization can be applied, supported formats '<name>' and '<namespace>/<name>'
|
||
|
--health-check stringArray workload to be included in the health assessment, in the format '<kind>/<name>.<namespace>'
|
||
|
--health-check-timeout duration timeout of health checking operations (default 2m0s)
|
||
|
-h, --help help for kustomization
|
||
|
--path string path to the directory containing the Kustomization file (default "./")
|
||
|
--prune enable garbage collection
|
||
|
--sa-name string service account name
|
||
|
--sa-namespace string service account namespace
|
||
|
--source kustomizationSource source that contains the Kubernetes manifests in the format '[<kind>/]<name>',where kind can be one of: (GitRepository, Bucket), if kind is not specified it defaults to GitRepository
|
||
|
--validation string validate the manifests before applying them on the cluster, can be 'client' or 'server'
|
||
5 years ago
|
```
|
||
|
|
||
|
### Options inherited from parent commands
|
||
|
|
||
|
```
|
||
5 years ago
|
--export export in YAML format to stdout
|
||
|
--interval duration source sync interval (default 1m0s)
|
||
|
--kubeconfig string path to the kubeconfig file (default "~/.kube/config")
|
||
4 years ago
|
--label strings set labels on the resource (can specify multiple labels with commas: label1=value1,label2=value2)
|
||
4 years ago
|
-n, --namespace string the namespace scope for this operation (default "flux-system")
|
||
5 years ago
|
--timeout duration timeout for this operation (default 5m0s)
|
||
|
--verbose print generated objects
|
||
5 years ago
|
```
|
||
|
|
||
|
### SEE ALSO
|
||
|
|
||
4 years ago
|
* [flux create](flux_create.md) - Create or update sources and resources
|
||
5 years ago
|
|