Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deploy kctf-operator #356

Closed
apogiatzis opened this issue Feb 3, 2022 · 7 comments
Closed

How to deploy kctf-operator #356

apogiatzis opened this issue Feb 3, 2022 · 7 comments
Assignees

Comments

@apogiatzis
Copy link

Hey guys,

I was looking for instructions on how to build and deploy the kctf-operator and stumbled across this documentation page https://github.com/google/kctf/blob/v1/docs/kctf-operator.md however it seems that it's out of date.

Even though the instructions recommend using operator-sdk v0.18.x, when I try to generate the CRDs I am getting the following error:

FATA[0000] failed to read config: error unmarshalling project configuration: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal array into Go struct field Config.layout of type string

Can you please advise on the matter?

@sroettger
Copy link
Collaborator

Ah, Eduardo just updated the operator to a newer version I think. @sirdarckcat can you take a look?

@sirdarckcat
Copy link
Member

Oh, sorry, I forgot about that document

Here's the script we used, it can be ran after you activate kCTF.

https://github.com/google/kctf/blob/v1/kctf-operator/build-and-deploy-operator.sh

@sirdarckcat
Copy link
Member

@apogiatzis
Copy link
Author

Thanks for the pointers! It's much appeciated!

However I am looking into deploying the operator on a kubernetes cluster on premise. So I assume the ${KCTF_BIN}/kctf-cluster" start command would deploy the operator on a GKE cluster right? How would you suggest deploying the operator on an on premise cluster?

@sirdarckcat
Copy link
Member

hmm, well, some things wont work, but try it! add a namespace called kctf-system and then run kubectl apply -f https://raw.githubusercontent.com/google/kctf/v1/dist/resources/operator.yaml

that said, it's probably better for you to just send a pull request and modify the kind cluster.

@apogiatzis
Copy link
Author

Will try it out! Thanks!

Also mentioning this here #342 as it seems related.

I will keep you informed of the progress here.

@sirdarckcat
Copy link
Member

yep, I agree. I think we can mark this as a duplicate of 342.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants