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

could not login to OCI registry "xxxx": Get "https://xxxx/v2/": http: server gave HTTP response to HTTPS client #1298

Open
lijiaonothing opened this issue Nov 29, 2023 · 0 comments

Comments

@lijiaonothing
Copy link

lijiaonothing commented Nov 29, 2023

Terraform version, Kubernetes provider version and Kubernetes version

Terraform version:1.3.5
Kubernetes version:1.19.3
Helm Provider version:2.10.0

Terraform configuration

provider "helm" {
  registry {
    url = "oci://xxxx"
    username = "user"
    password = "passwd"
  }
}
resource "helm_release" "mysql" {
  name       = "mysql" 
  namespace  = "mysql"
 
  repository = "oci://xxxx/helmchart"
  chart      = "mysql"
  version    =  "1.0.0"
}

Question


terraform plan
╷
│ Error: could not login to OCI registry "xxxx": Get "https://xxxx/v2/": http: server gave HTTP response to HTTPS client

Add flag --plain-http to enable working with HTTP registries.
helm/helm#12128

helm install mysql oci://xxxx/helmchart/mysql -n mysql --plain-http
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants