Can I use k8s etcd for Calico?

4/11/2019

There are 2 questions about Calico applying to k8s cluster.

  1. Calico creates etcd for own data, but I don't want to create another etcd because k8s already have it. Can I use k8s etcd for Calico?

  2. Calico prepares Typha for using Kubernetes API Datastore. Then, What does Typha exactly do? I read Typha's code, and assumed that Typha takes snapshots and deltas for adapting network policy and constantly broadcast them to all client which Typha connects to. But I'm not familiar with golang so I don't have confidence of my understanding.

I'm absolutely new to Calico and k8s, so I'm sorry if I miss some document related to above questions.

-- altblanc
calico
kubernetes

2 Answers

4/22/2019

We are using shared ETCD for calico as well as kubernetes, we did not face any issue. But it probably depends on the size of the k8s cluster and the kind of workloads being used. If there are too many short jobs, it could be an issue as there would be an increased load on ETCD in comparison to the ones with few - but long running - jobs

-- pr-pal
Source: StackOverflow

4/11/2019
  1. From the calico docs on adding it to K8s:

Requirements

An etcd cluster accessible by all nodes in the Kubernetes cluster

  • Calico can share the etcd cluster used by Kubernetes, but it’s recommended that a separate cluster is set up.
  1. I don't know much about how Typha works, but maybe the docs and the github repo have some more info on it.
-- char
Source: StackOverflow