Code Monkey home page Code Monkey logo

ampernetacle's People

Contributors

fserve avatar jpetazzo avatar kesleydavid avatar marema31 avatar sobrito avatar souzagab avatar uknbr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ampernetacle's Issues

Cluster status NotReady

After several attempts to use it, my nodes always have a not ready status.

from what I researched and tried to solve, it has to do with the memory and CPU issue. Can you help me solve this?

erro _k8s

erro _k8s_2

Error: 404-NotAuthorizedOrNotFound

Hi guys!!

When I say yes in terraform apply, the error below appears, someone has already gone through this and resolved?

Enter a value: yes

oci_identity_compartment._: Creating...

│ Error: 404-NotAuthorizedOrNotFound
│ Provider version: 4.62.0, released on 2022-02-03.
│ Service: Identity Compartment
│ Error Message: Authorization failed or requested resource not found
│ OPC request ID: c4b2b593a54068f708582e3af3d9a326/51670FFB8C9EEA3544C679F1544929AE/A229E55109DEFFC641B26FE197062263
│ Suggestion: Either the resource has been deleted or service Identity Compartment need policy to access this resource. Policy reference: https://docs.oracle.com/en-us/iaas/Content/Identity/Reference/policyreference.htm


│ with oci_identity_compartment.,
│ on main.tf line 1, in resource "oci_identity_compartment" "
":
│ 1: resource "oci_identity_compartment" "_" {

local-exec provisioner error

Pessoal, quando executo o terraform apply, todo processo é inicializado.
Depois de um bom tempo criando os recursos, acontece uma falha.
Ja tentei destruir e criar tudo novamente, mas sempre aparece o mesmo erro.

Alguem sabe como resolver?

Erro:

local_file.kubeconfig (local-exec): /bin/sh: 1: kubectl: not found
╷
│ Error: local-exec provisioner error
│ 
│   with local_file.kubeconfig,
│   on kubeconfig.tf line 34, in resource "local_file" "kubeconfig":
│   34:   provisioner "local-exec" {
│ 
│ Error running command 'kubectl --kubeconfig=kubeconfig config set-cluster kubernetes --server=https://IP_IP_IP_IP:6443': exit status 127. Output: /bin/sh: 1: kubectl: not found
│ 
╵

Por alguma razão, não é encontrado o kubectl na vm
/bin/sh: 1: kubectl: not found

No route to host

Depois de criar os recursos fiquei aguardando por 25 minutos o control plane ficar disponível, mas nunca termina a tentativa do curl:

null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.149.148 port 6443: No route to host
null_resource.wait_for_kube_apiserver: Still creating... [25m36s elapsed]
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.149.148 port 6443: No route to host

500-InternalError, Out of host capacity.

Suggestion: The service for this resource encountered an error. Please contact support for help with service: Core Instance
│ Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/core_instance
│ API Reference: https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/LaunchInstance
│ Request Target: POST https://iaas.sa-saopaulo-1.oraclecloud.com/20160918/instances
│ Provider version: 4.114.0, released on 2023-03-30. This provider is 22 Update(s) behind to current.
│ Service: Core Instance
│ Operation Name: LaunchInstance
│ OPC request ID: f28a18517acb44c1635c5df099dbd316/DDCD2D3C4407C06B7FB40298500866EF/E3D98352D6CCBB2F26AA909474DFF839


│ with oci_core_instance.["3"],
│ on main.tf line 24, in resource "oci_core_instance" "
":
│ 24: resource "oci_core_instance" "_" {

apt_repo_key

hi after doing terraform plan i'm getting this warning

Warning: Content-Type is not recognized as a text type, got "application/pgp-keys"

│ with data.http.apt_repo_key,
│ on cloudinit.tf line 141, in data "http" "apt_repo_key":
│ 141: data "http" "apt_repo_key" {

│ If the content is binary data, Terraform may not properly handle the contents of the response.

if i continue, i get stuck on curl loop forever

Failed to connect to : Connection refused

After creating the VMS in the OCI, this loop appears and does not go to the next step

null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 132.226.252.238 port 6443 after 78 ms: Connection refused

image

ssh timeout

So, my problem is, after terraform finished the creation of all underlying infrastructure when I try to connect in some node I always receive the same error:

user@MacBook-Pro ampernetacle % ssh -i id_rsa -l k8s xxx.xxx.xxx.xx
ssh: connect to host xxx.xxx.xxx.xx port 22: Operation timed out

I simply followed the README.md

Error: 401-NotAuthenticated

Fala mano tudo bem ?

Segui o tutorial, mas estou recebendo esse erro abaixo, Obs: realizei o procedimento de autenticação.

rror: 401-NotAuthenticated
│ Provider version: 4.62.0, released on 2022-02-03. This provider is 6 Update(s) behind to current.
│ Service: Identity Compartment
│ Error Message: The required information to complete authentication was not provided or was incorrect.
│ OPC request ID: 6896d399fbe98c2a8d4a0000024e3c4e/FF5DB833AF94E0780D65ADD29DC5BB23/FC4D1847A432E5D1A24DE646355D04A2
│ Suggestion: Please retry or contact support for help with service: Identity Compartment


│ with oci_identity_compartment.,
│ on main.tf line 1, in resource "oci_identity_compartment" "
":
│ 1: resource "oci_identity_compartment" "_" {

Pode dar uma ajuda por favor ?

Obrigado.

kubeadm-join.sh

Fiquei 3 dias tentando criar o cluster até que finalmente consegui.
Coloquei o apply em loop devido ao "Out of Host Capacity".

while true do sleep 5; terraform apply -auto-approve && break done

Então primeiramente foram criados os 3 workers e, por último, o control-plane.
Só que devido a esta sequência, nenhum worker node juntou-se ao control-plane.
Tive que conectar manualmente em cada worker node e executar o kubeadm-join.sh.
Seria interessante então executar o kubeadm-join.sh somente após o control-plane estar pronto.

Error 400-LimitExceeded

After executing terraform apply the 400-LimitExceeded error is displayed on the screen.

Details:
Provider version: 4.62.0, released on 2022-02-03. This provider is 14 Update(s) behind to current.
│ Service: Core Vcn
│ Error Message: The following service limits were exceeded: vcn-count. Request a service limit increase from the service limits page in the console.
│ OPC request ID: 1a238fb6cfb71ae065768363cad08153/BF438BD8106E634BF22FABF1E9F1B5F2/F7519F48E3D31148CE4441AB8C370585
│ Suggestion: Request a service limit increase for this resource Core Vcn


│ with oci_core_vcn.,
│ on network.tf line 1, in resource "oci_core_vcn" "
":
│ 1: resource "oci_core_vcn" "_" {

Oracle Cloud Deleting my Instances

Hello, everyone!

I am facing a problem with this project. After one day or so, oracle cloud just delete all my instances and I lose everything that I`ve done. Is it supposed to act like that or I am doing something wrong?

Thanks!

Erro terraform apply

Boa tarde,

Alguém passou por esse erro ?

oci_core_instance._["3"]: Creation complete after 4m1s
null_resource.wait_for_kube_apiserver: Creating...
null_resource.wait_for_kube_apiserver: Provisioning with 'local-exec'...
null_resource.wait_for_kube_apiserver (local-exec): Executing: ["cmd" "/C" "while ! curl -k https://xxx.70.196.103:6443; do\r\n sleep 1\r\ndone\r\n"]
null_resource.wait_for_kube_apiserver (local-exec): 'while' não é reconhecido como um comando interno
null_resource.wait_for_kube_apiserver (local-exec): ou externo, um programa operável ou um arquivo em lotes.

│ Error: local-exec provisioner error

│ with null_resource.wait_for_kube_apiserver,
│ on kubeconfig.tf line 3, in resource "null_resource" "wait_for_kube_apiserver":
│ 3: provisioner "local-exec" {

│ Error running command 'while ! curl -k https://xxx.70.196.103:6443; do
│ sleep 1
│ done
│ ': exit status 1. Output: 'while' não é reconhecido como um comando interno
│ ou externo, um programa operável ou um arquivo em lotes.

Error following readme step by step

First of all, congratulations on the project, the idea is really cool, I ended up executing it, I followed the LinuxTips video

I just ran the readme walkthrough and got the following error

oci_core_instance.["1"] (remote-exec): Get:28 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/main arm64 c-n-f Metadata [15.0 kB]
oci_core_instance.
["3"] (remote-exec): Get:37 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse arm64 c-n-f Metadata [248 B]
oci_core_instance.["3"] (remote-exec): Get:38 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 Packages [40.6 kB]
oci_core_instance.
["1"] (remote-exec): Get:29 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/restricted arm64 Packages [263 kB]
oci_core_instance.["3"] (remote-exec): Get:39 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/main Translation-en [10.2 kB]
oci_core_instance.
["3"] (remote-exec): Get:40 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 c-n-f Metadata [388 B]
oci_core_instance.["3"] (remote-exec): Get:41 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/restricted arm64 c-n-f Metadata [116 B]
oci_core_instance.
["3"] (remote-exec): Get:42 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 Packages [20.6 kB]
oci_core_instance.["3"] (remote-exec): Get:43 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/universe Translation-en [15.0 kB]
oci_core_instance.
["3"] (remote-exec): Get:44 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 c-n-f Metadata [484 B]
oci_core_instance.["3"] (remote-exec): Get:45 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/multiverse arm64 c-n-f Metadata [116 B]
oci_core_instance.
["1"] (remote-exec): Get:30 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/restricted Translation-en [71.0 kB]
oci_core_instance.["1"] (remote-exec): Get:31 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/restricted arm64 c-n-f Metadata [456 B]
oci_core_instance.
["1"] (remote-exec): Get:32 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 Packages [834 kB]
oci_core_instance.["1"] (remote-exec): Get:33 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/universe Translation-en [199 kB]
oci_core_instance.
["1"] (remote-exec): Get:34 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/universe arm64 c-n-f Metadata [17.7 kB]
oci_core_instance.["1"] (remote-exec): Get:35 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse arm64 Packages [22.6 kB]
oci_core_instance.
["1"] (remote-exec): Get:36 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse Translation-en [9684 B]
oci_core_instance.["1"] (remote-exec): Get:37 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-updates/multiverse arm64 c-n-f Metadata [248 B]
oci_core_instance.
["1"] (remote-exec): Get:38 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 Packages [40.6 kB]
oci_core_instance.["1"] (remote-exec): Get:39 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/main Translation-en [10.2 kB]
oci_core_instance.
["1"] (remote-exec): Get:40 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/main arm64 c-n-f Metadata [388 B]
oci_core_instance.["1"] (remote-exec): Get:41 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/restricted arm64 c-n-f Metadata [116 B]
oci_core_instance.
["1"] (remote-exec): Get:42 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 Packages [20.6 kB]
oci_core_instance.["1"] (remote-exec): Get:43 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/universe Translation-en [15.0 kB]
oci_core_instance.
["1"] (remote-exec): Get:44 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/universe arm64 c-n-f Metadata [484 B]
oci_core_instance.["1"] (remote-exec): Get:45 http://sa-saopaulo-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports jammy-backports/multiverse arm64 c-n-f Metadata [116 B]
oci_core_instance.
["3"] (remote-exec): Reading package lists...

oci_core_instance.["3"] (remote-exec): W: GPG error: https://packages.cloud.google.com/apt kubernetes-xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05
oci_core_instance.
["3"] (remote-exec): E: The repository 'https://apt.kubernetes.io kubernetes-xenial InRelease' is not signed.
oci_core_instance.["3"] (remote-exec): 2023-06-28 02:14:27,034 - util.py[WARNING]: Running module apt-configure (<module 'cloudinit.config.cc_apt_configure' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_apt_configure.py'>) failed
oci_core_instance.
["1"] (remote-exec): Reading package lists...

oci_core_instance.["1"] (remote-exec): W: GPG error: https://packages.cloud.google.com/apt kubernetes-xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B53DC80D13EDEF05
oci_core_instance.
["1"] (remote-exec): E: The repository 'https://apt.kubernetes.io kubernetes-xenial InRelease' is not signed.
oci_core_instance.["1"] (remote-exec): 2023-06-28 02:14:28,516 - util.py[WARNING]: Running module apt-configure (<module 'cloudinit.config.cc_apt_configure' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_apt_configure.py'>) failed
oci_core_instance.
["1"] (remote-exec): Cloud-init v. 23.1.2-0ubuntu0~22.04.1 running 'modules:final' at Wed, 28 Jun 2023 02:14:28 +0000. Up 48.79 seconds.

│ Error: remote-exec provisioner error

│ with oci_core_instance.["3"],
│ on main.tf line 51, in resource "oci_core_instance" "
":
│ 51: provisioner "remote-exec" {

│ error executing "/tmp/terraform_814386485.sh": Process exited with status 1


│ Error: remote-exec provisioner error

│ with oci_core_instance.["1"],
│ on main.tf line 51, in resource "oci_core_instance" "
":
│ 51: provisioner "remote-exec" {

│ error executing "/tmp/terraform_144268726.sh": Process exited with status 1


│ Error: remote-exec provisioner error

│ with oci_core_instance.["4"],
│ on main.tf line 51, in resource "oci_core_instance" "
":
│ 51: provisioner "remote-exec" {

│ error executing "/tmp/terraform_866555227.sh": Process exited with status 1


│ Error: remote-exec provisioner error

│ with oci_core_instance.["2"],
│ on main.tf line 51, in resource "oci_core_instance" "
":
│ 51: provisioner "remote-exec" {

│ error executing "/tmp/terraform_1649744653.sh": Process exited with status 1

Destroy - Delete compartment

Hello,
I tried destroying and recreating the cluster again, but it doesn't allow me to create the same compartment with the same name kubernetes-on-arm-with-oracle and I can't delete the compartment in OCI.

I tried to recreate it as kubernetes-on-arm-with-oracle-new but there is no resource to create a new compartment.

I have already deleted all the resources from the compartment and it does not finish.

I've done a lot of testing and research, but I haven't been successful.

Could you help with deleting the compartment to recreate the cluster?
Thank you for helping with this repository.

Regards,

Error on apply

Estou tomando esse erro:
Error: 401-NotAuthenticated
│ Provider version: 4.57.0, released on 2021-12-15. This provider is 7 version(s) old.
│ Service: Identity Compartment
│ Error Message: The required information to complete authentication was not provided or was incorrect.
│ OPC request ID: 9fda6778a33ef339ee589cdb35a0a10a/A7AB78B271531D65FC2D3174CE369407/45C30A48916D485C5628D83D0FB8987F
│ Suggestion: Please retry or contact support for help with service: Identity Compartment

Fiz a autenticação certo.,...

Podem me ajudar?

Warning: Deprecated

When I run the command "terraform plan" I get the following warnings:


│ Warning: Deprecated attribute

│ on cloudinit.tf line 39, in data "cloudinit_config" "_":
│ 39: ${indent(8, data.http.apt_repo_key.body)}

│ The attribute "body" is deprecated. Refer to the provider documentation for details.

│ (and 4 more similar warnings elsewhere)


│ Warning: Content-Type is not recognized as a text type, got "application/pgp-keys"

│ with data.http.apt_repo_key,
│ on cloudinit.tf line 147, in data "http" "apt_repo_key":
│ 147: data "http" "apt_repo_key" {

│ If the content is binary data, Terraform may not properly handle the contents of the response.


│ Warning: Argument is deprecated

│ with random_string.token1,
│ on cloudinit.tf line 158, in resource "random_string" "token1":
│ 158: number = true

│ Use numeric instead.

│ (and 3 more similar warnings elsewhere)

I tried running the command "" and it worked.
I ran the command "export KUBECONFIG=$PWD/kubeconfig" but when I run "Kubectl get nodes" it gives an error:

The connection to the server localhost:8080 was refused - did you specify the right host or port?

I already checked and I have the right kubectl configuration.
Anyone else with these problems?

Deployed PODs have no access to internet

First of all, thank you very much for this work, it made my life much much easier, it did created the kubernetes cluster for me with no effort.

That being said, it seems in my case that my deployed pods can access external APIs/Urls (Telegram for example). It seems to be a DNS issue due to my first tries to fix.

Here is what I tried:

k get pods -n kube-system

NAME                            READY   STATUS    RESTARTS      AGE
coredns-787d4945fb-sdtvf        1/1     Running   1 (11h ago)   13h
coredns-787d4945fb-tkr82        1/1     Running   1 (11h ago)   13h
etcd-node1                      1/1     Running   1 (11h ago)   13h
kube-apiserver-node1            1/1     Running   1 (11h ago)   13h
kube-controller-manager-node1   1/1     Running   1 (11h ago)   13h
kube-proxy-466ld                1/1     Running   1 (11h ago)   13h
kube-proxy-8jn6q                1/1     Running   1 (11h ago)   13h
kube-proxy-bf5mt                1/1     Running   1 (11h ago)   13h
kube-proxy-xdlwk                1/1     Running   1 (11h ago)   13h
kube-scheduler-node1            1/1     Running   1 (11h ago)   13h
weave-net-k5b9d                 2/2     Running   2 (11h ago)   13h
weave-net-lklhq                 2/2     Running   3 (11h ago)   13h
weave-net-rzjhn                 2/2     Running   2 (11h ago)   13h
weave-net-xcdf4                 2/2     Running   3 (11h ago)   13h

As it shows, coredns is up and running, but the log is not OK, I see a lot of no route to host messages

kubectl logs -f coredns-787d4945fb-sdtvf -n kube-system

.:53
[INFO] plugin/reload: Running configuration SHA512 = 591cf328cccc12bc490481273e738df59329c62c0b729d94e8b61db9961c2fa5f046dd37f1cf888b953814040d180f52594972691cd6ff41be96639138a43908
CoreDNS-1.9.3
linux/arm64, go1.18.2, 45b0a11
[ERROR] plugin/errors: 2 6316313032496278710.1919252235580212937. HINFO: read udp 10.32.0.3:56551->169.254.169.254:53: read: no route to host
[ERROR] plugin/errors: 2 6316313032496278710.1919252235580212937. HINFO: read udp 10.32.0.3:49321->169.254.169.254:53: read: no route to host
[ERROR] plugin/errors: 2 6316313032496278710.1919252235580212937. HINFO: read udp 10.32.0.3:44002->169.254.169.254:53: read: no route to host
[ERROR] plugin/errors: 2 checkpoint-api.weave.works. A: read udp 10.32.0.3:58720->169.254.169.254:53: i/o timeout
[ERROR] plugin/errors: 2 checkpoint-api.weave.works. AAAA: read udp 10.32.0.3:36946->169.254.169.254:53: read: no route to host

So I deployed a pod called dnsutils to see what is going on, but it had the same problem as the logs shown.

kubectl exec -it dnsutils -- nslookup google.com

;; connection timed out; no servers could be reached

command terminated with exit code 1

And this is what I have on /etc/resolv.conf (Seems ok to me)

kubectl exec -it dnsutils -- cat /etc/resolv.conf

search default.svc.cluster.local svc.cluster.local cluster.local
nameserver 10.96.0.10
options ndots:5

From the pod I want to deploy (a telegram bot), I get this:

panic: Post "https://api.telegram.org/mytoken/getMe": dial tcp: i/o timeout

I don't know what else I could try. Do you have any idea what could be the issue?

Thanks in advance!

Documentation request for oci cloud controller manager

Starting down the path to utilize oci cloud controller manager so I thought perhaps this could be a good stepping stone for this project to document how to do it manually.

It mentions here the "--cloud-provider=external" and "--provider-id=" flag
https://github.com/oracle/oci-cloud-controller-manager#preparing-your-cluster

I think that would be set here on this line?

command = "kubectl --kubeconfig=kubeconfig config set-cluster kubernetes --server=https://${oci_core_instance._[1].public_ip}:6443"

But if my cluster is already provisioned then I could apply a config map to the kube-system namespace.
https://www.ibm.com/docs/en/cloud-private/3.1.0?topic=scaling-reconfiguring-kubelet-in-live-cluster

See also:
https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/

Any thoughts on the approach / does any one have another way to do this?

Unable to connect to the server

after succesful i get the error, when execute kubectl get nodes (windows):
Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

my kubeconfig generated is:
apiVersion: v1
clusters:

  • cluster:
    server: https://xxxxxxxxxx:6443
    name: kubernetes
    contexts: null
    current-context: ""
    kind: Config
    preferences: {}
    users: null

data.external.kubeconfig: Reading...
data.external.kubeconfig: Read complete after 7s [id=-]
local_file.kubeconfig: Creating...
local_file.kubeconfig: Provisioning with 'local-exec'...
local_file.kubeconfig (local-exec): Executing: ["cmd" "/C" "kubectl --kubeconfig=kubeconfig config set-cluster kubernetes --server=https://xxxxxxx:6443"]
local_file.kubeconfig (local-exec): Cluster "kubernetes" set.
local_file.kubeconfig: Creation complete after 0s [id=da39a3ee5e6b4b0d3255bfef95601890afd80709]

Apply complete! Resources: 12 added, 0 changed, 0 destroyed.

Outputs:

ssh-with-k8s-user = <<EOT

OCI Terraform Provider on Macbook M1

I am having trouble executing your code, see:

Do you have any tips, to help me ?

Provider registry.terraform.io/hashicorp/oci v4.62.0 does not have a package available for your current platform, darwin_arm64.

Thank you...

OCI Authenticate

Hey @jpetazzo first thank you for this job!
I'm trying to create a CI pipeline on Github Actions using terraform.
The problem is that before applying, we need to configure the credentials in the OCI, but in the manual process, we are directed to the Oracle dashboard to confirm our credentials.
Do you have any idea how I can automate this within a pipeline?

Error: 500-InternalError

Error: 500-InternalError
│ Provider version: 4.62.0, released on 2022-02-03. This provider is 4 Update(s) behind to current.
│ Service: Core Instance
│ Error Message: Out of host capacity.
│ OPC request ID: d2aad3db605100b13fd8e768a3839636/8883E6ABFC2F5495AEAF3298B65C49A5/554BC3D0F5153961E5A14167AD49493C
│ Suggestion: The service for this resource encountered an error. Please contact support for help with service: Core Instance


│ with oci_core_instance.["3"],
│ on main.tf line 24, in resource "oci_core_instance" "
":
│ 24: resource "oci_core_instance" "" {



│ Error: 500-InternalError
│ Provider version: 4.62.0, released on 2022-02-03. This provider is 4 Update(s) behind to current.
│ Service: Core Instance
│ Error Message: Out of host capacity.
│ OPC request ID: dbb0f7923e0f157569de3542d835d024/4333AD7FB18CDE289B702ABF111B9E45/0DA2636C4307FDBFB5DCA93310738F0F
│ Suggestion: The service for this resource encountered an error. Please contact support for help with service: Core Instance


│ with oci_core_instance.
["2"],
│ on main.tf line 24, in resource "oci_core_instance" "":
│ 24: resource "oci_core_instance" "
" {



│ Error: 500-InternalError
│ Provider version: 4.62.0, released on 2022-02-03. This provider is 4 Update(s) behind to current.
│ Service: Core Instance
│ Error Message: Out of host capacity.
│ OPC request ID: 803eb6480ee346882363c0506cc48bae/EBEF8857E071F51AE59BE1071CFB9A58/07CC0AF17F089E1E78CC50EC5507EA13
│ Suggestion: The service for this resource encountered an error. Please contact support for help with service: Core Instance


│ with oci_core_instance.["4"],
│ on main.tf line 24, in resource "oci_core_instance" "
":
│ 24: resource "oci_core_instance" "" {



│ Error: 500-InternalError
│ Provider version: 4.62.0, released on 2022-02-03. This provider is 4 Update(s) behind to current.
│ Service: Core Instance
│ Error Message: Out of host capacity.
│ OPC request ID: e64c4814ade6cb674323295ef6879eb1/2E1D42479A56E6E68964FB31D4D6987E/081D60AA75E9F4F9171491EF2F24A1B2
│ Suggestion: The service for this resource encountered an error. Please contact support for help with service: Core Instance


│ with oci_core_instance.
["1"],
│ on main.tf line 24, in resource "oci_core_instance" "":
│ 24: resource "oci_core_instance" "
" {

Terraform apply Error

Boa tarde pessoal, estou tomando o erro abaixo ao tentar criar o cluster, alguém sabe o que pode ser?

│ Error: 500-InternalError, Out of host capacity.
│ Suggestion: The service for this resource encountered an error. Please contact support for help with service: Core Instance
│ Documentation: https://registry.terraform.io/providers/oracle/oci/latest/docs/resources/core_instance
│ API Reference: https://docs.oracle.com/iaas/api/#/en/iaas/20160918/Instance/LaunchInstance
│ Request Target: POST https://iaas.us-ashburn-1.oraclecloud.com/20160918/instances
│ Provider version: 4.116.0, released on 2023-04-12.
│ Service: Core Instance
│ Operation Name: LaunchInstance
│ OPC request ID: eaa9b21c32b7fcc32a520238f55b1cab/D199650646225322F1AF2C738B577E99/08135539C3A16382DE8607B840801F2A


│ with oci_core_instance.["2"],
│ on main.tf line 24, in resource "oci_core_instance" "
":
│ 24: resource "oci_core_instance" "_" {

*terraform apply* with "connection refused" message

When I have ran the *terraform apply" this output has showed:

random_string.token2: Creating...
random_string.token1: Creating...
random_string.token2: Creation complete after 0s [id=h3znokokmzi3yk2r]
tls_private_key.ssh: Creating...
random_string.token1: Creation complete after 0s [id=ya43tn]
oci_identity_compartment._: Creating...
tls_private_key.ssh: Creation complete after 5s [id=b650d67ca1473bd74a2ab20fa79069ddb7e04793]
data.cloudinit_config._["1"]: Reading...
data.cloudinit_config._["3"]: Reading...
data.cloudinit_config._["4"]: Reading...
data.cloudinit_config._["2"]: Reading...
local_file.ssh_private_key: Creating...
local_file.ssh_public_key: Creating...
local_file.ssh_public_key: Creation complete after 0s [id=e9b5229e8ca9428b45e561fed7efa2d38ecb9b25]
data.cloudinit_config._["2"]: Read complete after 0s [id=2309767237]
data.cloudinit_config._["1"]: Read complete after 0s [id=3544212909]
local_file.ssh_private_key: Creation complete after 0s [id=efd977b9bfa2f0a4963aff78ff43a50352d54ffc]
data.cloudinit_config._["4"]: Read complete after 0s [id=3209040053]
data.cloudinit_config._["3"]: Read complete after 0s [id=3590399737]
oci_identity_compartment._: Creation complete after 9s [id=ocid1.compartment.oc1..aaaaaaaatshlzflt2ikp7wqbkcmbwxk5bosbrr3j4cnxskt6bpr4irowxwvq]
data.oci_identity_availability_domains._: Reading...
data.oci_core_images._: Reading...
oci_core_vcn._: Creating...
data.oci_identity_availability_domains._: Read complete after 0s [id=IdentityAvailabilityDomainsDataSource-1495698601]
data.oci_core_images._: Read complete after 0s [id=CoreImagesDataSource-659559078]
oci_core_vcn._: Creation complete after 1s [id=ocid1.vcn.oc1.sa-saopaulo-1.amaaaaaa3zgmf6iagttxrzawdyymzfim5wtlvgst47bjpwcvpnjm7cljryrq]
oci_core_internet_gateway._: Creating...
oci_core_default_security_list._: Creating...
oci_core_internet_gateway._: Creation complete after 0s [id=ocid1.internetgateway.oc1.sa-saopaulo-1.aaaaaaaahng5uyi7ud55nroqs2zy2vvzdhfi6ldq7wdzofqqcrwyvf3cu54q]
oci_core_default_route_table._: Creating...
oci_core_default_security_list._: Creation complete after 0s [id=ocid1.securitylist.oc1.sa-saopaulo-1.aaaaaaaapsvp3ufkmzewbc2ab6v3xunpbufac2n3iqtn3ey34yz3wxxvxdaa]
oci_core_default_route_table._: Creation complete after 1s [id=ocid1.routetable.oc1.sa-saopaulo-1.aaaaaaaa5forr33nas3jhqnh3op4gfxktc6twh3xfvb77zkpk7z5ozpuyida]
oci_core_subnet._: Creating...
oci_core_subnet._: Creation complete after 3s [id=ocid1.subnet.oc1.sa-saopaulo-1.aaaaaaaae5kld2z7wkgh27wgf3p7kl4qzfz2tu4cgo7vw3x2xqnwq742kzkq]
oci_core_instance._["1"]: Creating...
oci_core_instance._["3"]: Creating...
oci_core_instance._["4"]: Creating...
oci_core_instance._["2"]: Creating...
oci_core_instance._["1"]: Still creating... [10s elapsed]
oci_core_instance._["3"]: Still creating... [10s elapsed]
oci_core_instance._["4"]: Still creating... [10s elapsed]
oci_core_instance._["2"]: Still creating... [10s elapsed]
oci_core_instance._["1"]: Still creating... [20s elapsed]
oci_core_instance._["3"]: Still creating... [20s elapsed]
oci_core_instance._["4"]: Still creating... [20s elapsed]
oci_core_instance._["2"]: Still creating... [20s elapsed]
oci_core_instance._["1"]: Still creating... [30s elapsed]
oci_core_instance._["3"]: Still creating... [30s elapsed]
oci_core_instance._["4"]: Still creating... [30s elapsed]
oci_core_instance._["2"]: Still creating... [30s elapsed]
oci_core_instance._["1"]: Still creating... [40s elapsed]
oci_core_instance._["3"]: Still creating... [40s elapsed]
oci_core_instance._["4"]: Still creating... [40s elapsed]
oci_core_instance._["2"]: Still creating... [40s elapsed]
oci_core_instance._["1"]: Still creating... [50s elapsed]
oci_core_instance._["3"]: Still creating... [50s elapsed]
oci_core_instance._["4"]: Still creating... [50s elapsed]
oci_core_instance._["2"]: Still creating... [50s elapsed]
oci_core_instance._["1"]: Creation complete after 56s [id=ocid1.instance.oc1.sa-saopaulo-1.antxeljr3zgmf6icclsxovedkv7y52m3cmzkem4fjrzwjt4px6ysevwpnn7q]
oci_core_instance._["3"]: Still creating... [1m0s elapsed]
oci_core_instance._["4"]: Still creating... [1m0s elapsed]
oci_core_instance._["2"]: Still creating... [1m0s elapsed]
oci_core_instance._["3"]: Still creating... [1m10s elapsed]
oci_core_instance._["4"]: Still creating... [1m10s elapsed]
oci_core_instance._["2"]: Still creating... [1m10s elapsed]
oci_core_instance._["4"]: Creation complete after 1m17s [id=ocid1.instance.oc1.sa-saopaulo-1.antxeljr3zgmf6ic23aw356lelt5p5zwo7n2523j7gi75ivkuion46kauiia]
oci_core_instance._["3"]: Still creating... [1m20s elapsed]
oci_core_instance._["2"]: Still creating... [1m20s elapsed]
oci_core_instance._["3"]: Still creating... [1m30s elapsed]
oci_core_instance._["2"]: Still creating... [1m30s elapsed]
oci_core_instance._["3"]: Still creating... [1m40s elapsed]
oci_core_instance._["2"]: Still creating... [1m40s elapsed]
oci_core_instance._["3"]: Still creating... [1m50s elapsed]
oci_core_instance._["2"]: Still creating... [1m50s elapsed]
oci_core_instance._["3"]: Creation complete after 1m58s [id=ocid1.instance.oc1.sa-saopaulo-1.antxeljr3zgmf6icvguqi5beeuggmbinhfxbyidnlff2joymw5p63zllownq]
oci_core_instance._["2"]: Still creating... [2m0s elapsed]
oci_core_instance._["2"]: Still creating... [2m10s elapsed]
oci_core_instance._["2"]: Still creating... [2m20s elapsed]
oci_core_instance._["2"]: Still creating... [2m30s elapsed]
oci_core_instance._["2"]: Still creating... [2m40s elapsed]
oci_core_instance._["2"]: Still creating... [2m50s elapsed]
oci_core_instance._["2"]: Still creating... [3m0s elapsed]
oci_core_instance._["2"]: Still creating... [3m10s elapsed]
oci_core_instance._["2"]: Still creating... [3m20s elapsed]
oci_core_instance._["2"]: Creation complete after 3m29s [id=ocid1.instance.oc1.sa-saopaulo-1.antxeljr3zgmf6ic5q6pdunlha76s5cunagz5cx4niex43kcrcrrpbroonaa]
null_resource.wait_for_kube_apiserver: Creating...
null_resource.wait_for_kube_apiserver: Provisioning with 'local-exec'...
null_resource.wait_for_kube_apiserver (local-exec): Executing: ["/bin/sh" "-c" "while ! curl -k https://144.22.219.156:6443; do sleep 1; done"]
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver: Still creating... [10s elapsed]
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver: Still creating... [20s elapsed]
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver: Still creating... [30s elapsed]
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver: Still creating... [40s elapsed]
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): curl: (7) Failed to connect to 144.22.219.156 port 6443: Connection refused
null_resource.wait_for_kube_apiserver (local-exec):   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
null_resource.wait_for_kube_apiserver (local-exec):                                  Dload  Upload   Total   Spent    Left  Speed
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
null_resource.wait_for_kube_apiserver: Still creating... [50s elapsed]
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec):   0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
null_resource.wait_for_kube_apiserver (local-exec): 100   217  100   217    0     0     29      0  0:00:07  0:00:07 --:--:--    52
null_resource.wait_for_kube_apiserver (local-exec): {
null_resource.wait_for_kube_apiserver (local-exec):   "kind": "Status",
null_resource.wait_for_kube_apiserver (local-exec):   "apiVersion": "v1",
null_resource.wait_for_kube_apiserver (local-exec):   "metadata": {},
null_resource.wait_for_kube_apiserver (local-exec):   "status": "Failure",
null_resource.wait_for_kube_apiserver (local-exec):   "message": "forbidden: User \"system:anonymous\" cannot get path \"/\"",
null_resource.wait_for_kube_apiserver (local-exec):   "reason": "Forbidden",
null_resource.wait_for_kube_apiserver (local-exec):   "details": {},
null_resource.wait_for_kube_apiserver (local-exec):   "code": 403
null_resource.wait_for_kube_apiserver (local-exec): }
null_resource.wait_for_kube_apiserver: Creation complete after 54s [id=6023745257311683485]
data.external.kubeconfig: Reading...
data.external.kubeconfig: Read complete after 2s [id=-]
local_file.kubeconfig: Creating...
local_file.kubeconfig: Provisioning with 'local-exec'...
local_file.kubeconfig (local-exec): Executing: ["/bin/sh" "-c" "kubectl --kubeconfig=kubeconfig config set-cluster kubernetes --server=https://144.22.219.156:6443"]
local_file.kubeconfig (local-exec): Cluster "kubernetes" set.
local_file.kubeconfig: Creation complete after 0s [id=18c47f6d7c2ccc99c294ac3160afa11d64bc2b26]

Apply complete! Resources: 17 added, 0 changed, 0 destroyed.

There was a lot of tries to connect in one specific machine, but seems like doesn't work, after the command has finished, the kubectl get nodes has returned only 3 nodes unlike 4 nodes.

"http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.

Hi All,

I am having the following problem on my servers.

Can somebody help me with it?

Thanks,

W1221 20:10:16.883570 15919 common.go:84] your configuration file uses a deprecated API spec: "kubeadm.k8s.io/v1beta2". Please use 'kubeadm config migrate --old-config old.yaml --new-config new.yaml', which will write the new, similar spec using a newer API version.
W1221 20:10:16.890661 15919 common.go:84] your configuration file uses a deprecated API spec: "kubeadm.k8s.io/v1beta2". Please use 'kubeadm config migrate --old-config old.yaml --new-config new.yaml', which will write the new, similar spec using a newer API version.
[init] Using Kubernetes version: v1.26.0
[preflight] Running pre-flight checks
[WARNING NumCPU]: the number of available CPUs 1 is less than the required 2
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
[certs] Using certificateDir folder "/etc/kubernetes/pki"
[certs] Generating "ca" certificate and key
[certs] Generating "apiserver" certificate and key
[certs] apiserver serving cert is signed for DNS names [kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local node1] and IPs [10.96.0.1 10.0.0.11 129.213.97.29]
[certs] Generating "apiserver-kubelet-client" certificate and key
[certs] Generating "front-proxy-ca" certificate and key
[certs] Generating "front-proxy-client" certificate and key
[certs] Generating "etcd/ca" certificate and key
[certs] Generating "etcd/server" certificate and key
[certs] etcd/server serving cert is signed for DNS names [localhost node1] and IPs [10.0.0.11 127.0.0.1 ::1]
[certs] Generating "etcd/peer" certificate and key
[certs] etcd/peer serving cert is signed for DNS names [localhost node1] and IPs [10.0.0.11 127.0.0.1 ::1]
[certs] Generating "etcd/healthcheck-client" certificate and key
[certs] Generating "apiserver-etcd-client" certificate and key
[certs] Generating "sa" key and public key
[kubeconfig] Using kubeconfig folder "/etc/kubernetes"
[kubeconfig] Writing "admin.conf" kubeconfig file
[kubeconfig] Writing "kubelet.conf" kubeconfig file
[kubeconfig] Writing "controller-manager.conf" kubeconfig file
[kubeconfig] Writing "scheduler.conf" kubeconfig file
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[kubelet-start] Starting the kubelet
[control-plane] Using manifest folder "/etc/kubernetes/manifests"
[control-plane] Creating static Pod manifest for "kube-apiserver"
[control-plane] Creating static Pod manifest for "kube-controller-manager"
[control-plane] Creating static Pod manifest for "kube-scheduler"
[etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests"
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
[kubelet-check] Initial timeout of 40s passed.
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.
[kubelet-check] It seems like the kubelet isn't running or healthy.
[kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp 127.0.0.1:10248: connect: connection refused.

Unfortunately, an error has occurred:
timed out waiting for the condition

This error is likely caused by:
- The kubelet is not running
- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)

If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:
- 'systemctl status kubelet'
- 'journalctl -xeu kubelet'

Additionally, a control plane component may have crashed or exited when started by the container runtime.
To troubleshoot, list all containers using your preferred container runtimes CLI.
Here is one example how you may list all running Kubernetes containers by using crictl:
- 'crictl --runtime-endpoint unix:///var/run/containerd/containerd.sock ps -a | grep kube | grep -v pause'
Once you have found the failing container, you can inspect its logs with:
- 'crictl --runtime-endpoint unix:///var/run/containerd/containerd.sock logs CONTAINERID'
error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster
To see the stack trace of this error execute with --v=5 or higher
The connection to the server 10.0.0.11:6443 was refused - did you specify the right host or port?
Cloud-init v. 22.3.4-0ubuntu120.04.1 running 'modules:final' at Wed, 21 Dec 2022 20:08:46 +0000. Up 37.08 seconds.
Cloud-init v. 22.3.4-0ubuntu1
20.04.1 finished at Wed, 21 Dec 2022 20:12:39 +0000. Datasource DataSourceOracle. Up 270.79 seconds

k8s@node1:~$ systemctl status kubelet
● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: activating (auto-restart) (Result: exit-code) since Wed 2022-12-21 20:22:00 UTC; 8s ago
Docs: https://kubernetes.io/docs/home/
Process: 16845 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=1/FAILURE)
Main PID: 16845 (code=exited, status=1/FAILURE)

k8s@node1:~$ sudo journalctl -xeu kubelet
-- The job identifier is 9025.
Dec 21 20:23:12 node1 kubelet[16926]: Flag --pod-infra-container-image has been deprecated, will be removed in 1.27. Image garbage collector will get sandbox image information from CRI.
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.544869 16926 server.go:198] "--pod-infra-container-image will not be pruned by the image garbage collector in kubelet and should also be set in the remote runtime"
Dec 21 20:23:12 node1 kubelet[16926]: Flag --pod-infra-container-image has been deprecated, will be removed in 1.27. Image garbage collector will get sandbox image information from CRI.
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.550799 16926 server.go:412] "Kubelet version" kubeletVersion="v1.26.0"
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.550949 16926 server.go:414] "Golang settings" GOGC="" GOMAXPROCS="" GOTRACEBACK=""
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.551265 16926 server.go:836] "Client rotation is on, will bootstrap in background"
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.552838 16926 certificate_store.go:130] Loading cert/key pair from "/var/lib/kubelet/pki/kubelet-client-current.pem".
Dec 21 20:23:12 node1 kubelet[16926]: W1221 20:23:12.554953 16926 machine.go:65] Cannot read vendor id correctly, set empty.
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.555513 16926 server.go:659] "--cgroups-per-qos enabled, but --cgroup-root was not specified. defaulting to /"
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.555943 16926 container_manager_linux.go:267] "Container manager verified user specified cgroup-root exists" cgroupRoot=[]
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.556133 16926 container_manager_linux.go:272] "Creating Container Manager object based on Node Config" nodeConfig={RuntimeCgroupsName: SystemCgroupsName: KubeletCgroupsName: KubeletOOMScoreAdj:-999 ContainerRuntime: CgroupsPerQOS:true CgroupRoot:/ CgroupDriver:cgroupfs KubeletRootDir:/var/lib/kubelet Pro>
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.556287 16926 topology_manager.go:134] "Creating topology manager with policy per scope" topologyPolicyName="none" topologyScopeName="container"
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.556394 16926 container_manager_linux.go:308] "Creating device plugin manager"
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.556535 16926 state_mem.go:36] "Initialized new in-memory state store"
Dec 21 20:23:12 node1 kubelet[16926]: I1221 20:23:12.557091 16926 dynamic_cafile_content.go:157] "Starting controller" name="client-ca-bundle::/etc/kubernetes/pki/ca.crt"
Dec 21 20:23:12 node1 kubelet[16926]: E1221 20:23:12.559218 16926 run.go:74] "command failed" err="failed to run Kubelet: validate service connection: CRI v1 runtime API is not implemented for endpoint "unix:///var/run/containerd/containerd.sock": rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
Dec 21 20:23:12 node1 systemd[1]: kubelet.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support

-- An ExecStart= process belonging to unit kubelet.service has exited.

-- The process' exit code is 'exited' and its exit status is 1.
Dec 21 20:23:12 node1 systemd[1]: kubelet.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support

-- The unit kubelet.service has entered the 'failed' state with result 'exit-code'.

shutdown/destroy the cluster

Hi
First, thanks for sharing the knowledge.
I have a doubt about turning off the cluster in the LinuxTips video it says a "cluster forever", but can I leave it turned on?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.