前言:
前面我有讲到一些集群搭建以及高可用配置,那么今天我们就来讲下这个kubefed,那么什么是kubefed呢?其实kubefed中文叫做:“联邦“,也就是说把两个或两个以上的k8s集群关联起来统一管理。像公司有跨异地机房的这种k8s集群的话,完全可以采用这个k8s联邦进行统一管理。我这里仅仅演示两个同局域网内的集群!集群如何搭建请参考我的上两篇文章。好了,直接上干货吧。
准备工作:
我这里用的是一台CentOS7 虚拟机作为客户端,配置不用太高,1C2G都够了!磁盘给8G吧。这台客户机的话要必须能够连通两个集群的master。最好配置在一个网段!
执行如下脚本安装kubectl,helm:
cd /etc/yum.repos.d/
mkdir backup
mv ./*.repo backup
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=0
EOF
yum clean all && yum makecache
yum -y update
yum -y install kubectl
cd /usr/local/src/
curl -O https://get.helm.sh/helm-v2.16.9-linux-amd64.tar.gz
tar -zxvf helm-v2.16.9-linux-amd64.tar.gz
cp linux-amd64/helm /usr/bin/
安装好以上两个工具后,我们可以创建两个集群的context模版配置。
kubectl config set-cluster cluster1 --server=https://集群一master的ip:6443 --insecure-skip-tls-verify
kubectl config set-context cluster1 --cluster cluster1 --user kubernetes-admin1
kubectl config set-cluster cluster2 --server=https://集群二master的ip:6443 --insecure-skip-tls-verify
kubectl config set-context cluster2 --cluster cluster2 --user kubernetes-admin2
kubectl config set-credentials kubernetes-admin1 --client-certificate=certfile --client-key=keyfile
kubectl config set-credentials kubernetes-admin2 --client-certificate=certfile --client-key=keyfile
去不同的两个集群master节点获取客户端证书数据和密钥数据,复制抓取到的所有内容替换到客户端相同路径文件里面。
cat .kube/config|grep client-certificate-data
cat .kube/config|grep client-key-data
我的客户端完整配置如下:
[root@client00 ~]# cat .kube/config
apiVersion: v1
clusters:
- cluster:
insecure-skip-tls-verify: true
server: https://集群一master的ip:6443
name: cluster1
- cluster:
insecure-skip-tls-verify: true
server: https://集群二master的ip:6443
name: cluster2
contexts:
- context:
cluster: cluster1
user: kubernetes-admin1
name: cluster1
- context:
cluster: cluster2
user: kubernetes-admin2
name: cluster2
current-context: cluster1
kind: Config
preferences: {}
users:
- name: kubernetes-admin1
user:
client-certificate-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUM4akNDQWRxZ0F3SUJBZ0lJVkc0Q0VqR2prT2d3RFFZSktvWklodmNOQVFFTEJRQXdGVEVUTUJFR0ExVUUKQXhNS2EzVmlaWEp1WlhSbGN6QWVGdzB5TURBNE1EVXdNek13TlRkYUZ3MHlNVEE0TURVd016TXdOVGhhTURReApGekFWQmdOVkJBb1REbk41YzNSbGJUcHRZWE4wWlhKek1Sa3dGd1lEVlFRREV4QnJkV0psY201bGRHVnpMV0ZrCmJXbHVNSUlCSWpBTkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQTVyRHZzTWREeDNZTW9jUnIKemtPY3laTVBVOEJPSWJvQW1WWUNqdFVhZktSOXYrTitGUERiTEJLckJBcVd1R0pRN3NjK0RzRUZFeVJpaW5vUwpXZ0syNlB4WllPc2pwUGp6cEROS0lJTHozZUg1UGFQRjl6bjdEbUw2eFV2dnlhWU4yckRiTmtnUnZDZG05eEhjCkEwd3hxa3dZeDJ1dFI5c1JXUWlCeDM2NFk2ZmpwSUVOWDA1dHpzVUFKN0FLT05EVUJSbnl2N2k5bHhjSGQ4Q2cKQkJ5TkxXOHpTMzdHa0NqRjdtSnlCTlVXTTZEbmI3TldjeEgwODNZNkRxbGIwMXR4ektacWUrVmZsTXQ3T0tnUQpPZGpQcnk0U09MQXRjSGpNbnpKSlo4TEJXbFpSdWZPVHNMMXNZZE9PM1BGQUI4SEltSUd3R0JueGp4QXY2WVlVCjhzSnNQUUlEQVFBQm95Y3dKVEFPQmdOVkhROEJBZjhFQkFNQ0JhQXdFd1lEVlIwbEJBd3dDZ1lJS3dZQkJRVUgK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GlsYwpuMHAxb3V3eUduRytOVWljMm5KRXFWNTlMSVlONW9acFhySHc2S2R1eXFwbURWZnlxSzhTCi0tLS0tRU5EIFJTQSBQUklWQVRFIEtFWS0tLS0tCg==
[root@client00 ~]#
好了,需要注意的是之前初始化模版配置里面users下面的client-certificate和client-key。需要自己加上-data后缀。
测试获取内容:
[root@client00 ~]# kubectl config use-context cluster1
Switched to context "cluster1".
[root@client00 ~]# kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
* cluster1 cluster1 kubernetes-admin1
cluster2 cluster2 kubernetes-admin2
以上是准备好了两个集群内容。
helm的服务端初始化工作。
[root@client00 ~]# helm init --upgrade -i registry.cn-shanghai.aliyuncs.com/gcrio_images/tiller:v2.16.9 --stable-repo-url https://kubernetes.oss-cn-shanghai.aliyuncs.com/charts --service-account tiller
[root@client00 ~]# helm version
Client: &version.Version{SemVer:"v2.16.9", GitCommit:"8ad7037828e5a0fca1009dabe290130da6368e39", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.3", GitCommit:"1ee0254c86d4ed6887327dabed7aa7da29d7eb0d", GitTreeState:"clean"}
helm添加kubefed仓库
[root@client00 ~]# helm repo add kubefed-charts https://raw.githubusercontent.com/kubernetes-sigs/kubefed/master/charts
[root@client00 ~]# helm repo list
NAME URL
kubefed-charts https://raw.githubusercontent.com/kubernetes-sigs/kubefed/master/charts
[root@client00 ~]# helm search kubefed --devel
NAME CHART VERSION APP VERSION DESCRIPTION
kubefed-charts/kubefed 0.3.1 KubeFed helm chart
kubefed-charts/federation-v2 0.0.10 Kubernetes Federation V2 helm chart
helm安装kubefed
[root@client00 ~]# helm install kubefed-charts/kubefed --name kubefed --version=0.3.1 --namespace kube-federation-system --devel --set controllermanager.repository=registry.cn-shanghai.aliyuncs.com/quayio_containers
helm卸载kubefed
kubectl -n kube-federation-system delete FederatedTypeConfig --all
kubectl delete crd $(kubectl get crd | grep -E 'kubefed.io' | awk '{print $1}')
helm delete --purge kubefed
集群加入
kubefedctl join cluster1 --cluster-context cluster1 \
--host-cluster-context cluster1 --v=2
kubefedctl join cluster2 --cluster-context cluster2 \
--host-cluster-context cluster1 --v=2
集群检查加入状态
[root@client00 ~]# kubectl -n kube-federation-system get kubefedclusters
NAME AGE READY
cluster1 20h True
cluster2 20h True
集群不加入
kubefedctl unjoin cluster2 --cluster-context cluster2 --host-cluster-context cluster1 --v=2
集群开启相关联邦API资源
kubefedctl enable FederatedNamespace
kubefedctl enable FederatedDeployment
集群测试部署,我这里部署nginx,各cluster部署3个pod。
如下内容保存为test.yaml
apiVersion: types.kubefed.io/v1beta1
kind: FederatedNamespace
metadata:
name: test-namespace
namespace: test-namespace
spec:
placement:
clusters:
- name: cluster2
- name: cluster1
---
apiVersion: types.kubefed.io/v1beta1
kind: FederatedDeployment
metadata:
name: test-deployment
namespace: test-namespace
spec:
template:
metadata:
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: nginx
name: nginx
placement:
clusters:
- name: cluster2
- name: cluster1
执行文件
kubectl apply -f test.yaml
查看两边cluster是否部署成功
[root@client00 ~]# kubectl get pods --all-namespaces -o wide --context cluster1|grep test-deployment
test-namespace test-deployment-8cb559794-56g65 1/1 Running 0 16h 10.244.7.3 worker00 <none> <none>
test-namespace test-deployment-8cb559794-v9dc6 1/1 Running 0 16h 10.244.7.2 worker00 <none> <none>
test-namespace test-deployment-8cb559794-zfdpq 1/1 Running 0 16h 10.244.7.4 worker00 <none> <none>
[root@client00 ~]# kubectl get pods --all-namespaces -o wide --context cluster2|grep test-deployment
test-namespace test-deployment-8cb559794-4z6hx 1/1 Running 0 16h 10.244.4.6 worker01 <none> <none>
test-namespace test-deployment-8cb559794-rrjj7 1/1 Running 0 16h 10.244.5.8 worker02 <none> <none>
test-namespace test-deployment-8cb559794-xt695 1/1 Running 0 16h 10.244.5.7 worker02 <none> <none>
好了,能看到以上结果说明两个集群联邦成功了。想了解关于更多联邦详情,请仔细阅读官方文档。