pgo.yaml clarification
Which example are you working with? GKE pgo client version 3.4.0 apiserver version 3.4.0 deployed via. helm
What is the current behavior?
When I exec into the operator pod(s), I can see there is a /pgo-config/pgo.yaml file.
There is also the same file provided when cloning the repo, as part of setup.
Really, I just wanted clarification around the use of the pgo.yaml as it's not quite clear in the documentation. Does this need to live somewhere specific, such as in a location accessible by the operator pods, or is it expected to live in my $HOME directory and used by pgo?
Also, as an aside - it looks like I can configure a lot of the persistent config items (eg. storage locations), via. pgo.yaml but is there a way to configure clusters, backups, etc. in yaml format for VCS? I'd rather use a testable IAC method that the pgo CLI if I can help it.
Hi, the pgo.yaml file you clone down is what drives the configuration of the Operator, you make changes to that file and then that file gets deployed into a configMap that the operator mounts at /pgo-config
those configuration settings are for the server side cnfiguration of the operator, other configuration files get loaded into the pgo configmap for things like resource templates and also security settings/configuration.
if you know the REST API you can make curl commands to the REST API to create clusters, others have asked for a form of creating resources via a user defined configmap but that is not implemented at this point. There are also requests to have an import/export/archive feature in the operator that would support mass ingest of resource requests but that is also not implemented yet but an Issue exists for us to work on in upcomiing releases.
hope that helps, more is coming along the lines of features and documentation.
Ah, right. So if I update the config maps, I update the associated configs on the pods. Basic Kubernetes, I know, but I'm still relatively new to Kubernetes and the operator is an abstraction above regular controllers. Initially, I wasn't sure if the client side controlled it, but that makes perfect sense; thanks for clarifying.
Understandable that not everything is in there yet. I mean, the pgo client is super useful, but it would be nice to emulate kubectl -f at some point.
Great work on this.
One can't edit default pgo.yaml after it was deployed with operator.
- deploy operator with replicas=2
- pgo show config
- edit pgo-config config map pgo.yaml , set replicas to 3
- pgo show config => still 2. although config map has 3.
@jmccormick2001 is it expected behavior? I know that some options can be overridden during
pgo create cluster. but updating defaults is also needed
if you make any changes to pgo.yaml or one of the operator templates you will need to run 'make deployoperator' to pull in those changes.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.