- Add the packages you want to config.yaml (and other configuration)
- Create the packages
NOTE: This will create a
./hack/build.sh
develop
version of the repository. - When you're fine, release the repository, and version properly (use
git flow release <VERSION>
). Generate all the descriptors and packages in the OCI registry../hack/push.sh
- Get ready for next version
- Deploy kapp-controller 0.20.0+
kubectl apply -f https://github.com/vmware-tanzu/carvel-kapp-controller/releases/latest/download/release.yml
- Install this package repository
kubectl apply -f target/k8s/repository.yaml
See up to date instructionns in dev-platform documentation.
- Create the dev-platform deployment files
cat <<EOF | kubectl apply -f - --- apiVersion: v1 kind: Namespace metadata: name: dev-platform --- apiVersion: v1 kind: ServiceAccount metadata: name: dev-platform namespace: dev-platform --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: dev-platform roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: dev-platform namespace: dev-platform EOF
- Create the config for your cluster
kubectl create secret generic dev-platform -n dev-platform --from-file=values.yaml=./profiles/override-minikube.yaml -o yaml --dry-run=client | kubectl apply -f -
- Install the package
cat <<EOF | kubectl apply -n dev-platform -f - --- apiVersion: packaging.carvel.dev/v1alpha1 kind: PackageInstall metadata: name: dev-platform spec: serviceAccountName: dev-platform packageRef: refName: dev-platform.dev.failk8s.com versionSelection: constraints: "0.0.0+develop" prereleases: {} values: - secretRef: name: dev-platform EOF
- Watch the package being installed
watch kubectl get packageinstall -A