本文介绍了KOPS集群上的Argo Workflow分配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用KOPS工具,我部署了一个集群:

Using KOPS tool, I deployed a cluster with:

  • 1个师傅
  • 2个奴隶
  • 1个负载均衡器

现在,我正在尝试部署Argo Workflow,但我不知道该过程.它会安装在我构建的k8s集群的Node或Master上吗?如何运作?

Now, I am trying to deploy an Argo Workflow, but I don't know the process. Will it install on Node or Master of the k8s cluster I built? How does it work?

基本上,如果任何人都可以描述在kubernetes上部署ARGO工作流程的功能流程或步骤,那就太好了.首先,我需要了解将其部署在主节点或工作节点上的什么位置?

Basically, if anyone can describe the functional flow or steps of deploying ARGO work flow on kubernetes, it would be nice. First, I need to understand where is it deployed on Master or Worker Node?

推荐答案

通常, kops 使用 污点 ,可防止在其上进行常规pod调度.
虽然,有一些集群网络实现出现了问题,有时您会得到一个在主机上没有污点的集群.

Usually, kops creates Kubernetes cluster with taints on a master node that prevent regular pods scheduling on it.
Although, there was an issues with some cluster network implementation, and sometimes you are getting a cluster without taints on the master.

您可以通过运行以下命令来更改主节点上的污点:

You can change taints on the master node by running the following commands:

添加污点(主机上没有豆荚):

kubectl taint node kube-master node-role.kubernetes.io/master:NoSchedule

去除异味(允许在主机上安排豆荚):

kubectl taint nodes --all node-role.kubernetes.io/master-

如果您想知道污点是否应用于not的主节点,请运行以下命令:

If you want to know whether the taints are applied to the master node of not, run the following command:

kubectl get node node-master --export -o yaml

找到一个 spec:部分.如果出现污点,您应该会看到类似以下内容的东西:

Find a spec: section. In case the taints are present, you should see something like this:

...
spec:
  externalID: node-master
  podCIDR: 192.168.0.0/24
  taints:
  - effect: NoSchedule
    key: node-role.kubernetes.io/master
...

这篇关于KOPS集群上的Argo Workflow分配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 14:45