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

terraform apply #89

Open
talpa opened this issue Aug 19, 2021 · 2 comments
Open

terraform apply #89

talpa opened this issue Aug 19, 2021 · 2 comments

Comments

@talpa
Copy link

talpa commented Aug 19, 2021

I tried make terraform-install and result is

cd k8s \
  kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v1.3.1/cert-manager.crds.yaml \
terraform init \
terraform apply \
  terraform output -raw templates | kubectl apply -f -
error: no objects passed to apply
make: *** [Makefile:66: terraform-install] Error 1

when I try command by comand then by kubectl apply is result this...


Error: Post "http://localhost/api/v1/namespaces": dial tcp 127.0.0.1:80: connect: connection refused
│ 
│   with kubernetes_namespace.main,
│   on k8s-namespace.tf line 1, in resource "kubernetes_namespace" "main":
│    1: resource "kubernetes_namespace" "main" {
│ 
╵
╷
│ Error: Post "http://localhost/apis/storage.k8s.io/v1/storageclasses": dial tcp 127.0.0.1:80: connect: connection refused
│ 
│   with kubernetes_storage_class.mongodb,
│   on mongodb.tf line 28, in resource "kubernetes_storage_class" "mongodb":
│   28: resource "kubernetes_storage_class" "mongodb" {

Can you help me? Please

@vardius
Copy link
Owner

vardius commented Aug 28, 2021

it tries to create a volume, make sure that mounted directory exists on the machine

sorry, for the late reply but I just noticed, for some reason I didn't get email about that issue

@gopherstein
Copy link

For anyone having this issue. Just set the kube context in the terraform variable file to the context you want to use.

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