profile
viewpoint
Thomas Balthazar tbalthazar @heroku Brussels, Belgium https://balthazar.info Back off man, I'm a scientist. Writing software in Go and Ruby.

tbalthazar/onesignal-ruby 89

OneSignal Ruby bindings

tbalthazar-archives/cappuccinocasts-episodes 35

Source code for the examples used in the Cappuccino Casts episodes

tbalthazar/onesignal-go 27

Go client for the OneSignal API

tbalthazar-archives/lighthouse-to-github 15

- no longer maintained - A ruby script that migrates Lighthouse tickets to Github issues

tbalthazar-archives/CocoaCasts-episodes 9

CocoaCasts source code

tbalthazar-archives/cappuccinoitunesexample 6

Cappuccino iTunes Layout extended

tbalthazar-archives/Cappuccino-Extensions 3

A collection of extensions for the Cappuccino Application Framework.

atmos/escobar 2

Heroku Pipelines and GitHub Deployments :revolving_hearts:

created taggeerlingguy/ansible-role-kubernetes

tag5.0.1

Ansible Role - Kubernetes

created time in 5 days

push eventgeerlingguy/ansible-role-kubernetes

Feng Ye

commit sha a3714d8b79c4c2a706df5a6c04259cec860f4e69

Make YUM baseurl and gpgkey configurable

view details

Jeff Geerling

commit sha 41be8a0d070cecb3981331bf097274394db8991a

Merge pull request #87 from fengye87/master Make YUM baseurl and gpgkey configurable

view details

push time in 5 days

Pull request review commentgeerlingguy/ansible-role-kubernetes

Make YUM baseurl and gpgkey configurable

 kubernetes_apt_repository: "deb http://apt.kubernetes.io/ kubernetes-xenial {{ k kubernetes_apt_ignore_key_error: false  kubernetes_yum_arch: x86_64+kubernetes_yum_base_url: "https://packages.cloud.google.com/yum/repos/kubernetes-el7-{{ kubernetes_yum_arch }}"

Done, please review again

fengye87

comment created time in 5 days

startedalbinekb/favicon-emoji

started time in 5 days

Pull request review commentgeerlingguy/ansible-role-kubernetes

Make YUM baseurl and gpgkey configurable

 kubernetes_apt_repository: "deb http://apt.kubernetes.io/ kubernetes-xenial {{ k kubernetes_apt_ignore_key_error: false  kubernetes_yum_arch: x86_64+kubernetes_yum_base_url: "https://packages.cloud.google.com/yum/repos/kubernetes-el7-{{ kubernetes_yum_arch }}"

Can you also add these in the README.md so they are documented there? After that I'm happy to merge!

fengye87

comment created time in 6 days

issue commentgeerlingguy/ansible-role-kubernetes

kubernetes_pod_network is not set correctly when calico cni used

refs: https://github.com/geerlingguy/ansible-role-kubernetes/issues/86

elcomtik

comment created time in 7 days

issue openedgeerlingguy/ansible-role-kubernetes

Calico manifest & pod cidr

The default calico manifest in the role https://docs.projectcalico.org/v3.10/manifests/calico.yaml actually enforces the pod cidr to 192.168.0.0/16 which may cause issues when overriding the cidr with kubeadm.

kubernetes_pod_network:
  cni: 'calico'
  cidr: '10.10.0.0/16'

The official documentation actually talks about this topic: https://docs.projectcalico.org/getting-started/kubernetes/self-managed-onprem/onpremises

As a fix, the following manifest should be used:

https://docs.projectcalico.org/manifests/calico.yaml

As a workaround, it is possible to override the kubernetes_calico_manifest_file variable in your inventory:

kubernetes_calico_manifest_file: https://docs.projectcalico.org/manifests/calico.yaml

Best regards,

created time in 8 days

issue commentgeerlingguy/ansible-role-kubernetes

kubernetes_pod_network is not set correctly when calico cni used

The problem is: the CIDR value is writing in https://docs.projectcalico.org/v3.10/manifests/calico.yaml

elcomtik

comment created time in 8 days

issue openedgeerlingguy/ansible-role-kubernetes

Coredns has problems on ubuntu 20.04

Coredns is running into an CrashLoopBackoff, for there is a problem for kubernetes when using /etc/resolv.conf created by the systemd-resolver.

The solution is here: https://coredns.io/plugins/loop/#troubleshooting-loops-in-kubernetes-clusters

IMHO we need https://github.com/geerlingguy/ansible-role-kubernetes/issues/4 to do that.

created time in 11 days

issue closedgeerlingguy/ansible-role-kubernetes

Failed to add node to the cluster

Hi, I am getting below error

TASK [geerlingguy.kubernetes : Join node to Kubernetes master] ********************************************************************************************************************************** fatal: [c3bab3b4ba1c.mylabserver.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'kubernetes_join_command' is undefined\n\nThe error appears to be in '/home/cloud_user/.ansible/roles/geerlingguy.kubernetes/tasks/node-setup.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Join node to Kubernetes master\n ^ here\n"}

Master.yaml

- hosts: master
  become: true
  vars:
    kubernetes_role: "master"
  roles:
  - geerlingguy.docker
  - geerlingguy.kubernetes
```

Node.yaml
```
- hosts: nodes
  become: true
  vars:
    kubernetes_role: "node"
  roles:
  - geerlingguy.docker
  - geerlingguy.kubernetes
```


command used 
ansible-playbook master.yaml -KK # with sucess no issues
ansible-playbook node.yaml -KK failed with above error

swap is off on node

Thank You

closed time in 12 days

vinodhum

issue commentgeerlingguy/ansible-role-kubernetes

Failed to add node to the cluster

With the way this role currently works, you have to run on both the master and node in the same playbook so the join token can be picked up on the master.

vinodhum

comment created time in 12 days

push eventNeutrinet/site-neutrinet-beta

neutrinet-site

commit sha 0796321fe1eb8a239a7dd3d9543af678cf56861c

(Grav GitSync) Automatic Commit from neutrinet-site

view details

Site-sync-Neutrinet

commit sha f21b4cebe4b038df46927f867a2d2cdc215e061c

Merge branch 'master' of https://gitlab.domainepublic.net/Neutrinet/site-neutrinet-beta

view details

push time in 14 days

push eventNeutrinet/site-neutrinet-beta

tierce

commit sha 53842333d178e7b5c8f44c7fb76bb0766d5e26b6

don +30

view details

tierce

commit sha 4a4e42cf8390265dfad29d0b759bd588c2707af3

Merge branch 'master' of ssh://gitlab.domainepublic.net:3264/Neutrinet/site-neutrinet-beta

view details

push time in 14 days

startedtbalthazar/onesignal-go

started time in 15 days

startedgithub/roadmap

started time in 16 days

push eventgeerlingguy/ansible-role-kubernetes

Jeff Geerling

commit sha 2f4fc8f39de864988d880bfd010884a3188a1a0e

Fix CI workflow syntax.

view details

push time in 19 days

push eventgeerlingguy/ansible-role-kubernetes

Jeff Geerling

commit sha 8d36527c6d57af78ba3e470d5de89c36672dae3c

Dump Travis CI and move to GitHub Actions.

view details

push time in 19 days

issue openedgeerlingguy/ansible-role-kubernetes

Failed to add node to the cluster

Hi, I am getting below error

TASK [geerlingguy.kubernetes : Join node to Kubernetes master] ********************************************************************************************************************************** fatal: [c3bab3b4ba1c.mylabserver.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'kubernetes_join_command' is undefined\n\nThe error appears to be in '/home/cloud_user/.ansible/roles/geerlingguy.kubernetes/tasks/node-setup.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Join node to Kubernetes master\n ^ here\n"}

Master `- hosts: master become: true vars: kubernetes_role: "master" roles:

  • geerlingguy.docker
  • geerlingguy.kubernetes `

Node `- hosts: nodes become: true vars: kubernetes_role: "node" roles:

  • geerlingguy.docker
  • geerlingguy.kubernetes `

command used ansible-playbook master.yaml -KK # with sucess no issues ansible-playbook node.yaml -KK failed with above error

swap is off on node

Thank You

created time in 21 days

fork bfirsh/replicate

Version control for machine learning

https://replicate.ai/

fork in 23 days

push eventNeutrinet/site-neutrinet-beta

neutrinet-site

commit sha 1efc3f78ba1f072a9a0b4a79ea22b793cd493bea

(Grav GitSync) Automatic Commit from neutrinet-site

view details

push time in 24 days

push eventNeutrinet/site-neutrinet-beta

neutrinet-site

commit sha 43851c937444dac933172cb80e80bbd4dc0d5dc6

(Grav GitSync) Automatic Commit from neutrinet-site

view details

push time in 24 days

fork bfirsh/replicate-1

Version control for machine learning

https://replicate.ai/

fork in 25 days

push eventNeutrinet/accounting

Thomas Balthazar

commit sha f558c8eb28a81797ac4594cd6143b81a654ce754

Update Ruby/Rails and dependencies

view details

push time in 25 days

push eventgeerlingguy/ansible-role-kubernetes

Jeff Geerling

commit sha 24062aa430151effeb8c443267d68e504e155e47

Switch to travis-ci.com.

view details

push time in a month

startedoperatorai/operator

started time in a month

issue closedgeerlingguy/ansible-role-kubernetes

Undefined variable kubernetes_join_command

I was trying very first complete example (given in the book Ansible for kubernetes) using Vagrant boxes on mac os x and encountered this error after following the steps mentioned:

TASK [geerlingguy.kubernetes : Join node to Kubernetes master] ******************************************************************************************
fatal: [kube2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'kubernetes_join_command' is undefined\n\nThe error appears to be in '/Users/ni3/Desktop/Personal/temp/ansible-k8s-vagrant-cluster/roles/geerlingguy.kubernetes/tasks/node-setup.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Join node to Kubernetes master\n  ^ here\n"}
fatal: [kube3]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'kubernetes_join_command' is undefined\n\nThe error appears to be in '/Users/ni3/Desktop/Personal/temp/ansible-k8s-vagrant-cluster/roles/geerlingguy.kubernetes/tasks/node-setup.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Join node to Kubernetes master\n  ^ here\n"}

I did some digging and found that this variable kubernetes_join_command in node-setup.yml is not defined anywhere in this role vars and not supplied from the main task and also didn't find any docs stating it either. I think its a bug.

Please let me know happy to help here.

Edit 1:

Above error came because there was some issues with master node setup, error logs as below:

"stdout_lines": [
    "[init] Using Kubernetes version: v1.19.3",
    "[preflight] Running pre-flight checks",
    "[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 [kube1 kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.96.0.1 10.0.2.15]",
    "[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 [kube1 localhost] and IPs [10.0.2.15 127.0.0.1 ::1]",
    "[certs] Generating \"etcd/peer\" certificate and key",
    "[certs] etcd/peer serving cert is signed for DNS names [kube1 localhost] and IPs [10.0.2.15 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 [::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 [::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 [::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 [::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 [::1]:10248: connect: connection refused.",
    "",
    "\tUnfortunately, an error has occurred:",
    "\t\ttimed out waiting for the condition",
    "",
    "\tThis error is likely caused by:",
    "\t\t- The kubelet is not running",
    "\t\t- The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled)",
    "",
    "\tIf you are on a systemd-powered system, you can try to troubleshoot the error with the following commands:",
    "\t\t- 'systemctl status kubelet'",
    "\t\t- 'journalctl -xeu kubelet'",
    "",
    "\tAdditionally, a control plane component may have crashed or exited when started by the container runtime.",
    "\tTo troubleshoot, list all containers using your preferred container runtimes CLI.",
    "",
    "\tHere is one example how you may list all Kubernetes containers running in docker:",
    "\t\t- 'docker ps -a | grep kube | grep -v pause'",
    "\t\tOnce you have found the failing container, you can inspect its logs with:",
    "\t\t- 'docker logs CONTAINERID'"
  ]

Skipped whole json, added only formatted error lines.

Edit 2: I ran the ansible playbook again and now getting this error:

TASK [geerlingguy.kubernetes : Configure Flannel networking.]
{
  "ansible_loop_var": "item",
  "changed": false,
  "cmd": [
    "kubectl",
    "apply",
    "-f",
    "https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml"
  ],
  "delta": "0:00:00.086162",
  "end": "2020-10-19 15:34:50.174204",
  "item": "kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml",
  "msg": "non-zero return code",
  "rc": 1,
  "start": "2020-10-19 15:34:50.088042",
  "stderr": "The connection to the server 10.0.2.15:6443 was refused - did you specify the right host or port?",
  "stderr_lines": [
    "The connection to the server 10.0.2.15:6443 was refused - did you specify the right host or port?"
  ],
  "stdout": "",
  "stdout_lines": []
}

closed time in a month

novicedev7291

issue commentgeerlingguy/ansible-role-kubernetes

Undefined variable kubernetes_join_command

Please ignore the issue, vars were not included in main playbook, sorry for troubling you.

novicedev7291

comment created time in a month

issue openedgeerlingguy/ansible-role-kubernetes

Undefined variable kubernetes_join_command

I was trying very first complete example (given in the book Ansible for kubernetes) using Vagrant boxes on mac os x and encountered this error after following the steps mentioned:

TASK [geerlingguy.kubernetes : Join node to Kubernetes master] ******************************************************************************************
fatal: [kube2]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'kubernetes_join_command' is undefined\n\nThe error appears to be in '/Users/ni3/Desktop/Personal/temp/ansible-k8s-vagrant-cluster/roles/geerlingguy.kubernetes/tasks/node-setup.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Join node to Kubernetes master\n  ^ here\n"}
fatal: [kube3]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'kubernetes_join_command' is undefined\n\nThe error appears to be in '/Users/ni3/Desktop/Personal/temp/ansible-k8s-vagrant-cluster/roles/geerlingguy.kubernetes/tasks/node-setup.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Join node to Kubernetes master\n  ^ here\n"}

I did some digging and found that this variable kubernetes_join_command in node-setup.yml is not defined anywhere in this role vars and not supplied from the main task and also didn't find any docs stating it either. I think its a bug.

Please let me know happy to help here.

created time in a month

more