Comments on: Manage Kubernetes Cluster with Terraform and Argo CD https://piotrminkowski.com/2022/06/28/manage-kubernetes-cluster-with-terraform-and-argo-cd/ Java, Spring, Kotlin, microservices, Kubernetes, containers Tue, 26 Mar 2024 08:58:41 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: piotr.minkowski https://piotrminkowski.com/2022/06/28/manage-kubernetes-cluster-with-terraform-and-argo-cd/#comment-2377 Tue, 26 Mar 2024 08:58:41 +0000 https://piotrminkowski.com/?p=11992#comment-2377 In reply to Gabby.

Hi,
I don’t have mac with M1… Do you use Docker Desktop for that? Did you also try to create the kind cluster using the `kind` CLI (kind create cluster …)?

]]>
By: Gabby https://piotrminkowski.com/2022/06/28/manage-kubernetes-cluster-with-terraform-and-argo-cd/#comment-2368 Sun, 17 Mar 2024 17:50:27 +0000 https://piotrminkowski.com/?p=11992#comment-2368 In reply to piotr.minkowski.

Having an issue to create the first cluster on an M1 macos machine. did you find a solution for it or I need to use another machine …?

kind_cluster.default: Creating…

│ Error: command “docker run –name cluster-1-control-plane –hostname cluster-1-control-plane –label io.x-k8s.kind.role=control-plane –privileged –security-opt seccomp=unconfined –security-opt apparmor=unconfined –tmpfs /tmp –tmpfs /run –volume /var –volume /lib/modules:/lib/modules:ro -e KIND_EXPERIMENTAL_CONTAINERD_SNAPSHOTTER –detach –tty –label io.x-k8s.kind.cluster=cluster-1 –net kind –restart=on-failure:1 –init=false –cgroupns=private –publish=0.0.0.0:80:80/TCP –publish=0.0.0.0:444:444/TCP –publish=127.0.0.1:64044:6443/TCP -e KUBECONFIG=/etc/kubernetes/admin.conf kindest/node:v1.29.2@sha256:51a1434a5397193442f0be2a297b488b6c919ce8a3931be0ce822606ea5ca245” failed with error: exit status 125

│ with kind_cluster.default,
│ on main.tf line 16, in resource “kind_cluster” “default”:
│ 16: resource “kind_cluster” “default” {

Other than that, great article 🙂

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/06/28/manage-kubernetes-cluster-with-terraform-and-argo-cd/#comment-2266 Fri, 19 Jan 2024 12:12:48 +0000 https://piotrminkowski.com/?p=11992#comment-2266 In reply to Simon.

In this particular case, we are creating the local Kubernetes cluster on Docker (with Kind).

]]>
By: Simon https://piotrminkowski.com/2022/06/28/manage-kubernetes-cluster-with-terraform-and-argo-cd/#comment-2225 Sat, 23 Dec 2023 09:44:20 +0000 https://piotrminkowski.com/?p=11992#comment-2225 Thank you very much for the step by step content. However, I have a question. Where is the Kubernetes cluster going to be installed? on-prem or cloud? Also, I would have appreciate if you specify the .tf name on each section of the code so that it can be easy for a Terraform newbie like myself. Thank you

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/06/28/manage-kubernetes-cluster-with-terraform-and-argo-cd/#comment-2097 Wed, 23 Aug 2023 21:08:36 +0000 https://piotrminkowski.com/?p=11992#comment-2097 In reply to Tometchy.

You are welcome 🙂

]]>
By: Tometchy https://piotrminkowski.com/2022/06/28/manage-kubernetes-cluster-with-terraform-and-argo-cd/#comment-2096 Wed, 23 Aug 2023 19:53:43 +0000 https://piotrminkowski.com/?p=11992#comment-2096 Awesome article, I was looking for such demo, thank you! 🙂

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/06/28/manage-kubernetes-cluster-with-terraform-and-argo-cd/#comment-1918 Mon, 20 Mar 2023 15:13:44 +0000 https://piotrminkowski.com/?p=11992#comment-1918 In reply to Alex.

Maybe these are just temporary problems with quay.io. Did you try once again?

]]>
By: piotr.minkowski https://piotrminkowski.com/2022/06/28/manage-kubernetes-cluster-with-terraform-and-argo-cd/#comment-1917 Mon, 20 Mar 2023 15:12:40 +0000 https://piotrminkowski.com/?p=11992#comment-1917 In reply to Alan.

Hi. No, I don’t have any problems with that

]]>
By: Alan https://piotrminkowski.com/2022/06/28/manage-kubernetes-cluster-with-terraform-and-argo-cd/#comment-1901 Fri, 10 Mar 2023 11:05:14 +0000 https://piotrminkowski.com/?p=11992#comment-1901 im failing to pull the image as Im getting this error:
Failed to pull image “quay.io/argoproj/argocd:v2.4.2”: rpc error: code = Unkno ││ wn desc = failed to pull and unpack image “quay.io/argoproj/argocd:v2.4.2”: failed to resolve reference “quay.io/argoproj/argocd:v2.4.2”: fa ││ iled to do request: Head “https://quay.io/v2/argoproj/argocd/manifests/v2.4.2”: x509: certificate signed by unknown authority

any thoughts?

]]>
By: Alex https://piotrminkowski.com/2022/06/28/manage-kubernetes-cluster-with-terraform-and-argo-cd/#comment-1900 Fri, 10 Mar 2023 10:00:54 +0000 https://piotrminkowski.com/?p=11992#comment-1900 getting this issue:
│ Error: olm/catalog-operator failed to fetch resource from kubernetes: context deadline exceeded

│ with kubectl_manifest.olm_apply[“/apis/apps/v1/namespaces/olm/deployments/catalog-operator”],
│ on main.tf line 66, in resource “kubectl_manifest” “olm_apply”:
│ 66: resource “kubectl_manifest” “olm_apply” {



│ Error: olm/olm-operator failed to fetch resource from kubernetes: context deadline exceeded

│ with kubectl_manifest.olm_apply[“/apis/apps/v1/namespaces/olm/deployments/olm-operator”],
│ on main.tf line 66, in resource “kubectl_manifest” “olm_apply”:
│ 66: resource “kubectl_manifest” “olm_apply” {

when I went into the pod logs for olm, this is what it says:
Failed to pull image “quay.io/operator-framework/olm@sha256:39081bf0c4a9a167a ││ 5244bcc1bceda0a0b92be340776d498e99a51c544cf53ca”: rpc error: code = Unknown desc = failed to pull and unpack image “quay.io/operator-framewo ││ rk/olm@sha256:39081bf0c4a9a167a5244bcc1bceda0a0b92be340776d498e99a51c544cf53ca”: failed to resolve reference “quay.io/operator-framework/olm ││ @sha256:39081bf0c4a9a167a5244bcc1bceda0a0b92be340776d498e99a51c544cf53ca”: failed to do request: Head “https://quay.io/v2/operator-framework ││ /olm/manifests/sha256:39081bf0c4a9a167a5244bcc1bceda0a0b92be340776d498e99a51c544cf53ca”: x509: certificate signed by unknown authority ││ Warning Failed 11m (x4 over 12m) kubelet Error: ErrImagePull ││ Warning Failed 10m (x6 over 12m) kubelet Error: ImagePullBackOff

any thoughts?

]]>