kaniko

command
v1.37.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

Example: kaniko

Open in Cloud Shell

This is an example demonstrating:

  • building a single Go file app and with a single stage Dockerfile using kaniko to build on a K8S cluster
  • tagging using the default tagPolicy (gitCommit)
  • deploying a single container pod using kubectl

GCP

If you are on GCP, create a Service Account for Kaniko that has permissions to pull and push images from/to gcr.io.

Download the json service account file, rename the file to kaniko-secret (do not append .json to the filename) and create a Kubernetes secret using the following example:

kubectl create secret generic kaniko-secret --from-file=kaniko-secret

Note the name of the secret AND the key must be kaniko-secret

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL