You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can add challenge object with it's yaml config looking smth like:
apiVersion: "kctf.dev/v1"kind: Challengemetadata:
name: mychalspec:
public: truehealthcheck: falsehttps: truedns: trueautoscaling: {}# any other arbitrary fields
On the k8s cluster size there will be a controller (needs to be implemented): it will just watch for creation/update of challenge resource in the cluster, and set it up upon creation/update. E.g. if you change public: true to public: false it will delete service for that challenge.
Some advantages of having this:
challenge will become a 1st-class k8s API citizen, allowing to use kubectl list challenges or kubectl describe challenge mychal
it allows us to use standard config (k8s yaml) and standard commands like kubectl create challenge mychal or kubectl delete challenge mychal
we can take away some steps from being executed locally to k8s controller, e.g. building an image for challenge: the controller would create a Job for building an image and then creates a Deployment for challenge
this can also help with versioning: we can specify it with apiVersion: "kctf.dev/v1", this is again a standard way of k8s API versioning
The text was updated successfully, but these errors were encountered:
Background on k8s CRD: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/
We can add
challenge
object with it's yaml config looking smth like:On the k8s cluster size there will be a controller (needs to be implemented): it will just watch for creation/update of
challenge
resource in the cluster, and set it up upon creation/update. E.g. if you changepublic: true
topublic: false
it will delete service for that challenge.Some advantages of having this:
kubectl list challenges
orkubectl describe challenge mychal
kubectl create challenge mychal
orkubectl delete challenge mychal
apiVersion: "kctf.dev/v1"
, this is again a standard way of k8s API versioningThe text was updated successfully, but these errors were encountered: