Coder Social home page Coder Social logo

kadras-io / package-for-kpack Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 140 KB

Kubernetes-native package for kpack, an implementation of Cloud Native Buildpacks to build source code into OCI images from within your cluster.

License: Apache License 2.0

Makefile 37.10% Starlark 62.90%
buildpacks carvel cloud-native-buildpacks kapp-controller kpack kubernetes paketo-buildpack

package-for-kpack's Introduction

Kpack

Test Workflow Release Workflow The SLSA Level 3 badge The Apache 2.0 license badge Follow us on Twitter

A Carvel package for kpack, a Kubernetes-native implementation of Cloud Native Buildpacks to build OCI images from within the cluster.

๐Ÿš€ย  Getting Started

Prerequisites

  • Kubernetes 1.28+

  • Carvel kctrl CLI.

  • Carvel kapp-controller deployed in your Kubernetes cluster. You can install it with Carvel kapp (recommended choice) or kubectl.

    kapp deploy -a kapp-controller -y \
      -f https://github.com/carvel-dev/kapp-controller/releases/latest/download/release.yml

Installation

Add the Kadras package repository to your Kubernetes cluster:

kctrl package repository add -r kadras-packages \
  --url ghcr.io/kadras-io/kadras-packages \
  -n kadras-system --create-namespace
Installation without package repository The recommended way of installing the kpack package is via the Kadras package repository. If you prefer not using the repository, you can add the package definition directly using kapp or kubectl.
kubectl create namespace kadras-system
kapp deploy -a kpack-package -n kadras-system -y \
  -f https://github.com/kadras-io/package-for-kpack/releases/latest/download/metadata.yml \
  -f https://github.com/kadras-io/package-for-kpack/releases/latest/download/package.yml

Install the kpack package:

kctrl package install -i kpack \
  -p kpack.packages.kadras.io \
  -v ${VERSION} \
  -n kadras-system

Note You can find the ${VERSION} value by retrieving the list of package versions available in the Kadras package repository installed on your cluster.

kctrl package available list -p kpack.packages.kadras.io -n kadras-system

Verify the installed packages and their status:

kctrl package installed list -n kadras-system

๐Ÿ“™ย  Documentation

Documentation, tutorials and examples for this package are available in the docs folder. For documentation specific to kpack, check out github.com/buildpacks-community/kpack.

๐ŸŽฏย  Configuration

The kpack package can be customized via a values.yml file.

kp_default_repository:
  name: ghcr.io/thomasvitale/buildpacks
  credentials:
    username: "jon.snow"
    password: "youknownothing"

Reference the values.yml file from the kctrl command when installing or upgrading the package.

kctrl package install -i kpack \
  -p kpack.packages.kadras.io \
  -v ${VERSION} \
  -n kadras-system \
  --values-file values.yml

Values

The kpack package has the following configurable properties.

Configurable properties
Config Default Description
ca_cert_data "" PEM-encoded certificate data that kpack controller will use to trust TLS connections based on a custom CA with a container registry. Note: This will not be injected into builds, you need to use the cert injection webhook with the kpack.io/build label value.

Settings for the default container repository used by kpack.

Config Default Description
kp_default_repository.name "" The default repository to use for builder images and dependencies. For example, GitHub Container Registry: ghcr.io/my-org/buildpacks; GCR: gcr.io/my-project/buildpacks; Harbor: myharbor.io/my-project/buildpacks, Dockerhub: docker.io/my-username/buildpacks.
kp_default_repository.credentials.username "" Username to access the default container repository. Note: Use _json_key for GCR.
kp_default_repository.credentials.password "" Token to access the default container repository. Note: Use contents of service account key json for GCR.
kp_default_repository.secret.name "" The name of the Secret holding the credentials to access the default container repository.
kp_default_repository.secret.namespace "" The namespace of the Secret holding the credentials to access the default container repository.
kp_default_repository.secret.create_export false Whether to create a SecretExport resource to export the Secret from the source namespace to the kpack namespace. Not needed when installing kpack as part of the Kadras Enginnering Platform.
kp_default_repository.aws_iam_role_arn "" IAM credentials to access the default container repository if the registry is on AWS.

Setting for the kpack controller.

Config Default Description
controller.resources.requests.memory "1Gi" Memory requests configuration for the kpack-controller Deployment. In a resource-constrained environment, you can lower this up to 100Mi.
controller.resources.limits.memory "1Gi" Memory limits configuration for the kpack-controller Deployment. In a resource-constrained environment, you can lower this up to 500Mi.
config.injected_sidecar_support false Enable support for injected sidecars.

Settings for the corporate proxy.

Config Default Description
proxy.http_proxy "" The HTTP proxy to use for network traffic.
proxy.https_proxy "" The HTTPS proxy to use for network traffic.
proxy.no_proxy "" A comma-separated list of hostnames, IP addresses, or IP ranges in CIDR format that should not use a proxy (e.g. Kubernetes API address).

๐Ÿ›ก๏ธย  Security

The security process for reporting vulnerabilities is described in SECURITY.md.

๐Ÿ–Š๏ธย  License

This project is licensed under the Apache License 2.0. See LICENSE for more information.

๐Ÿ™ย  Acknowledgments

This package is inspired by the original kpack package used in the Tanzu Community Edition project before its retirement.

package-for-kpack's People

Contributors

thomasvitale avatar

Watchers

 avatar

package-for-kpack's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.