A microservice example to create namespace using client-go.
- Cluster Admins need to grant privileges to the default service account created in the namespace, where this microservice is deployed. reference RBAC file
ko
cli to quickly build and deploy this sample.
ko apply -f config/k8s.yaml
curl --location --request POST 'https://create-ns.<Cluster-Domain>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "test"
}'