Getting Started#
First check the prerequisites
create a k8s cluster
install pkgserver
verify if pkgserver is running
kubectl api-resources| grep package
packagevariants config.pkg.pkgserver.dev/v1alpha1 true PackageVariant
packagerevisionresourceses pkg.pkgserver.dev/v1alpha1 true PackageRevisionResources
packagerevisions pkg.pkgserver.dev/v1alpha1 true PackageRevision
register a catalog repository
kubectl apply -f - <<EOF
apiVersion: config.pkg.pkgserver.dev/v1alpha1
kind: Repository
metadata:
name: repo-catalog
spec:
type: git
deployment: false
git:
url: https://github.com/pkgserver-dev/pkgserver-demo-catalog.git
EOF
the following output is expected
NAME READY DEPLOYMENT TYPE ADDRESS
repo-catalog True git https://github.com/pkgserver-dev/pkgserver-demo-catalog.git
you should see the following packages appear since the pkgserver discover packages automatically for catalog repositories
kubectl get packagerevisions.pkg.pkgserver.dev --field-selector=spec.packageID.repository=repo-catalog
Expected output