kp_clusterbuildpack_create.md
July 26, 2023 ยท View on GitHub
kp clusterbuildpack create
Create a cluster buildpack
Synopsis
Create a cluster buildpack by providing command line arguments.
The default service account used is read from the "default.repository.serviceaccount" key in the "kp-config" ConfigMap within "kpack" namespace.
kp clusterbuildpack create <name> --image <image> [flags]
Examples
kp clusterbuildpack create my-cluster-buildpack --image gcr.io/paketo-buildpacks/java
kp clusterbuildpack create my-cluster-buildpack --image gcr.io/paketo-buildpacks/java:8.9.0
kp clusterbuildpack create my-cluster-buildpack --image gcr.io/paketo-buildpacks/java@sha256:fc1c6fba46b582f63b13490b89e50e93c95ce08142a8737f4a6b70c826c995de
Options
--dry-run perform validation with no side-effects; no objects are sent to the server.
The --dry-run flag can be used in combination with the --output flag to
view the Kubernetes resource(s) without sending anything to the server.
-h, --help help for create
-i, --image string registry location where the cluster buildpack is located
--output string print Kubernetes resources in the specified format; supported formats are: yaml, json.
The output can be used with the "kubectl apply -f" command. To allow this, the command
updates are redirected to stderr and only the Kubernetes resource(s) are written to stdout.
The APIVersion of the outputted resources will always be the latest APIVersion known to kp (currently: v1alpha2).
SEE ALSO
- kp clusterbuildpack - ClusterBuildpack Commands