Basic Usage
- {{< highlight bash "" >}} +{{< highlight bash "" >}} # Configurations picked up from a directory $ kbld -f examples/cassandra/ | kubectl apply -f - # Can be used with helm charts @@ -90,7 +90,7 @@Basic Usage
Examples
Resolves name-tag pair reference (nginx:1.17
) into digest reference (index.docker.io/library/nginx@sha256:2539d4344...
)
Input:
- {{< highlight yaml "" >}} +{{< highlight yaml "" >}} apiVersion: apps/v1 kind: Deployment metadata: @@ -114,7 +114,7 @@Examples
- containerPort: 80 {{< / highlight >}}Output:
- {{< highlight yaml "" >}} +{{< highlight yaml "" >}} apiVersion: apps/v1 kind: Deployment metadata: @@ -146,7 +146,7 @@Examples
{{< / highlight >}}Builds app from local directory (configured via Config's sources
), pushes image as docker.io/hk/simple-app
(configured via Config's destinations
), and finally resolves it to a digest reference index.docker.io/hk/simple-app@sha256:e932e46fd...
.
Input:
- {{< highlight yaml "" >}} +{{< highlight yaml "" >}} apiVersion: apps/v1 kind: Deployment metadata: @@ -179,7 +179,7 @@Examples
newImage: docker.io/hk/simple-app # <-- where to push app1 image {{< / highlight >}}Output:
- {{< highlight yaml "" >}} +{{< highlight yaml "" >}} apiVersion: apps/v1 kind: Deployment metadata: