Skip to content

Instantly share code, notes, and snippets.

@smijar
Last active May 20, 2022 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smijar/5c56fb68282052e3a682195f13010713 to your computer and use it in GitHub Desktop.
Save smijar/5c56fb68282052e3a682195f13010713 to your computer and use it in GitHub Desktop.

patching knative cluster for allowing addition of "runtime class" kind for functions

export config map to see what is in it

kubectl get configmap/config-features -n knative-serving -o yaml

then patch it with a merge

echo "patching configmap/config-features to enable podspec.runtimeclassname for installing KM..."

kubectl patch configmap/config-features -n knative-serving --type merge -p '{"data":{"kubernetes.podspec-runtimeclassname": "enabled"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment