Skip to content

Update Cortex to be installable on any k8s cluster on AWS and GCP #1837

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

Merged
merged 22 commits into from
Feb 2, 2021

Conversation

vishalbollu
Copy link
Contributor

@vishalbollu vishalbollu commented Jan 31, 2021

closes #1808

  • Add helm charts to allow the installation of Cortex on kubernetes clusters in AWS and GCP (tested on EKS, GKE and Kops (AWS))
  • Updated environment management to remove the need for users to specify credentials and provider. The provider information is retrieved when during operator endpoint verification.

checklist:

  • run make test and make lint
  • test manually (i.e. build/push all images, restart operator, and re-deploy APIs)
  • update examples
  • update docs and add any new files to summary.md (view in gitbook after merging)
  • cherry-pick into release branches if applicable
  • alert the dev team if the dev environment changed

@vishalbollu vishalbollu requested a review from deliahu January 31, 2021 22:21
Copy link
Collaborator

@miguelvr miguelvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: directory manifestschart

OperatorMetadata *clusterconfig.OperatorMetadata

Cluster *clusterconfig.BaseConfig
fullClusterConfig *clusterconfig.InternalConfig
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can be public

Cluster *clusterconfig.BaseConfig
fullClusterConfig *clusterconfig.InternalConfig
GCPCluster *clusterconfig.GCPBaseConfig
gcpFullClusterConfig *clusterconfig.InternalGCPConfig
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can be public

return err
}
if !exists {
return errors.ErrorUnexpected("the specified bucket either does not exist", gcpFullClusterConfig.Bucket)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: revisit this error message

Comment on lines 188 to 194
if gcpFullClusterConfig.Bucket == "" {
gcpFullClusterConfig.Bucket = clusterconfig.GCPBucketName(gcpFullClusterConfig.ClusterName, *gcpFullClusterConfig.Project, *gcpFullClusterConfig.Zone)
err := GCP.CreateBucket(gcpFullClusterConfig.Bucket, gcp.ZoneToRegion(*gcpFullClusterConfig.Zone), true)
if err != nil {
return err
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this section

Copy link
Collaborator

@miguelvr miguelvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the helm charts in general and committed a few minor changes

Overall LGTM

@vishalbollu vishalbollu merged commit 17581ad into master Feb 2, 2021
@vishalbollu vishalbollu deleted the byocluster branch February 2, 2021 20:28
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

Successfully merging this pull request may close these issues.

Support installing Cortex on an existing k8s cluster on AWS or GCP
4 participants