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

k8s operators as deployed as statefulsets and use storage correctly #9120

Merged
merged 1 commit into from Aug 28, 2018

Conversation

wallyworld
Copy link
Member

Description of change

This PR fixes a number of aspects of k8s operator deployments.

k8s application operators now are deployed using either a deployment controller or statefulset (depending on if storage is used).
The operator provisioning api has been extended to provide the necessary storage information. juju will look for a storage-pool called "operator-storage" and use that if defined.
storage classes are now prefixed with the model name when created since they are global entities. juju will look first for the model class, and then for a global class.

QA steps

Create a k8s model on aws.

Create a juju operator storage class:
$ juju create-storage-pool operator-storage kubernetes storage-class=juju-operator-storage storage-provisioner=kubernetes.io/aws-ebs parameters.type=gp2

Deploy a charm and see that the operator is deployed as a statefulset and that an ebs volume has been provisioned and used for operator storage.

@wallyworld
Copy link
Member Author

@wallyworld
Copy link
Member Author

@ycliuhw
Copy link
Member

ycliuhw commented Aug 28, 2018

Looks awesome!
Thanks!

@wallyworld
Copy link
Member Author

$$merge$$

@jujubot jujubot merged commit bfcaa41 into juju:develop Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants