centos/Redat

推荐列表 站点导航

当前位置:首页 > 操作系统 > centos/Redat >

CentOS安装K8S图文教程(一次性成功)(2)

来源:网络整理  作者:wy  发布时间:2020-12-23 10:55
operator:In values: -ppc64le hostNetwork:true tolerations: -operator:Exists effect:NoSchedule serviceAccountName:flannel initContainers: -name:install-cni image:quay-mirror.qiniu.com/coreos/flannel:v0...

                     operator: In  

                    values:  

                      - ppc64le  

      hostNetwork: true  

      tolerations:  

      - operator: Exists  

        effect: NoSchedule  

      serviceAccountName: flannel  

      initContainers:  

      - name: install-cni  

        image: quay-mirror.qiniu.com/coreos/flannel:v0.11.0-ppc64le  

        command:  

        - cp  

        args:  

        - -f  

        - /etc/kube-flannel/cni-conf.json  

        - /etc/cni/net.d/10-flannel.conflist  

        volumeMounts:  

        - name: cni  

          mountPath: /etc/cni/net.d  

        - name: flannel-cfg  

          mountPath: /etc/kube-flannel/  

      containers:  

      - name: kube-flannel  

        image: quay-mirror.qiniu.com/coreos/flannel:v0.11.0-ppc64le  

        command: 

         - /opt/bin/flanneld  

        args:  

        - --ip-masq  

        - --kube-subnet-mgr  

        resources:  

          requests:  

            cpu: "100m"  

            memory: "50Mi"  

          limits:  

            cpu: "100m"  

            memory: "50Mi"  

        securityContext:  

          privileged: false  

          capabilities:  

             add: ["NET_ADMIN"]  

        env:  

        - name: POD_NAME  

          valueFrom: 

            fieldRef:  

              fieldPath: metadata.name  

        - name: POD_NAMESPACE  

          valueFrom:  

            fieldRef:  

              fieldPath: metadata.namespace  

        volumeMounts:  

        - name: run  

          mountPath: /run/flannel  

        - name: flannel-cfg  

          mountPath: /etc/kube-flannel/  

      volumes:  

        - name: run  

          hostPath:  

            path: /run/flannel  

        - name: cni  

          hostPath:  

            path: /etc/cni/net.d  

        - name: flannel-cfg  

          configMap:  

            name: kube-flannel-cfg  

---  

apiVersion: apps/v1  

kind: DaemonSet  

metadata:  

  name: kube-flannel-ds-s390x  

  namespace: kube-system  

  labels:  

    tier: node  

    app: flannel  

spec: 

   selector:  

    matchLabels:  

      app: flannel  

  template:  

    metadata:  

      labels:  

        tier: node  

        app: flannel  

    spec:  

      affinity:  

        nodeAffinity:  

          requiredDuringSchedulingIgnoredDuringExecution: 

            nodeSelectorTerms:  

              - matchExpressions:  

                  - key: beta.kubernetes.io/os  

                    operator: In  

                    values:  

                      - linux  

                  - key: beta.kubernetes.io/arch  

                    operator: In  

                    values:  

                      - s390x  

      hostNetwork: true  

      tolerations:  

      - operator: Exists  

        effect: NoSchedule  

      serviceAccountName: flannel  

      initContainers:  

      - name: install-cni  

        image: quay-mirror.qiniu.com/coreos/flannel:v0.11.0-s390x  

        command:  

        - cp  

        args:  

        - -f  

        - /etc/kube-flannel/cni-conf.json  

        - /etc/cni/net.d/10-flannel.conflist  

        volumeMounts:  

        - name: cni  

          mountPath: /etc/cni/net.d  

        - name: flannel-cfg  

          mountPath: /etc/kube-flannel/  

      containers:  

      - name: kube-flannel  

        image: quay-mirror.qiniu.com/coreos/flannel:v0.11.0-s390x  

        command:  

        - /opt/bin/flanneld  

        args:  

        - --ip-masq  

        - --kube-subnet-mgr  

        resources:  

          requests:  

            cpu: "100m"  

            memory: "50Mi"  

          limits:  

            cpu: "100m"  

            memory: "50Mi"  

        securityContext:  

          privileged: false  

          capabilities:  

             add: ["NET_ADMIN"]  

        env:  

        - name: POD_NAME  

          valueFrom:  

            fieldRef:  

              fieldPath: metadata.name  

        - name: POD_NAMESPACE  

          valueFrom:  

            fieldRef:  

              fieldPath: metadata.namespace  

        volumeMounts:  

        - name: run  

          mountPath: /run/flannel  

        - name: flannel-cfg  

          mountPath: /etc/kube-flannel/  

      volumes:  

        - name: run  

          hostPath: 

             path: /run/flannel  

        - name: cni  

          hostPath:  

            path: /etc/cni/net.d  

        - name: flannel-cfg  

          configMap:  

            name: kube-flannel-cfg 

原文地址:https://mp.weixin.qq.com/s/KGv6gbXRepG8Zu0-u8odIA

相关热词: 教程 安装

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/xt/centos/8055.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

CentOS安装K8S图文教程(一次性成功)(2)

2020-12-23 编辑:wy

                     operator: In  

                    values:  

                      - ppc64le  

      hostNetwork: true  

      tolerations:  

      - operator: Exists  

        effect: NoSchedule  

      serviceAccountName: flannel  

      initContainers:  

      - name: install-cni  

        image: quay-mirror.qiniu.com/coreos/flannel:v0.11.0-ppc64le  

        command:  

        - cp  

        args:  

        - -f  

        - /etc/kube-flannel/cni-conf.json  

        - /etc/cni/net.d/10-flannel.conflist  

        volumeMounts:  

        - name: cni  

          mountPath: /etc/cni/net.d  

        - name: flannel-cfg  

          mountPath: /etc/kube-flannel/  

      containers:  

      - name: kube-flannel  

        image: quay-mirror.qiniu.com/coreos/flannel:v0.11.0-ppc64le  

        command: 

         - /opt/bin/flanneld  

        args:  

        - --ip-masq  

        - --kube-subnet-mgr  

        resources:  

          requests:  

            cpu: "100m"  

            memory: "50Mi"  

          limits:  

            cpu: "100m"  

            memory: "50Mi"  

        securityContext:  

          privileged: false  

          capabilities:  

             add: ["NET_ADMIN"]  

        env:  

        - name: POD_NAME  

          valueFrom: 

            fieldRef:  

              fieldPath: metadata.name  

        - name: POD_NAMESPACE  

          valueFrom:  

            fieldRef:  

              fieldPath: metadata.namespace  

        volumeMounts:  

        - name: run  

          mountPath: /run/flannel  

        - name: flannel-cfg  

          mountPath: /etc/kube-flannel/  

      volumes:  

        - name: run  

          hostPath:  

            path: /run/flannel  

        - name: cni  

          hostPath:  

            path: /etc/cni/net.d  

        - name: flannel-cfg  

          configMap:  

            name: kube-flannel-cfg  

---  

apiVersion: apps/v1  

kind: DaemonSet  

metadata:  

  name: kube-flannel-ds-s390x  

  namespace: kube-system  

  labels:  

    tier: node  

    app: flannel  

spec: 

   selector:  

    matchLabels:  

      app: flannel  

  template:  

    metadata:  

      labels:  

        tier: node  

        app: flannel  

    spec:  

      affinity:  

        nodeAffinity:  

          requiredDuringSchedulingIgnoredDuringExecution: 

            nodeSelectorTerms:  

              - matchExpressions:  

                  - key: beta.kubernetes.io/os  

                    operator: In  

                    values:  

                      - linux  

                  - key: beta.kubernetes.io/arch  

                    operator: In  

                    values:  

                      - s390x  

      hostNetwork: true  

      tolerations:  

      - operator: Exists  

        effect: NoSchedule  

      serviceAccountName: flannel  

      initContainers:  

      - name: install-cni  

        image: quay-mirror.qiniu.com/coreos/flannel:v0.11.0-s390x  

        command:  

        - cp  

        args:  

        - -f  

        - /etc/kube-flannel/cni-conf.json  

        - /etc/cni/net.d/10-flannel.conflist  

        volumeMounts:  

        - name: cni  

          mountPath: /etc/cni/net.d  

        - name: flannel-cfg  

          mountPath: /etc/kube-flannel/  

      containers:  

      - name: kube-flannel  

        image: quay-mirror.qiniu.com/coreos/flannel:v0.11.0-s390x  

        command:  

        - /opt/bin/flanneld  

        args:  

        - --ip-masq  

        - --kube-subnet-mgr  

        resources:  

          requests:  

            cpu: "100m"  

            memory: "50Mi"  

          limits:  

            cpu: "100m"  

            memory: "50Mi"  

        securityContext:  

          privileged: false  

          capabilities:  

             add: ["NET_ADMIN"]  

        env:  

        - name: POD_NAME  

          valueFrom:  

            fieldRef:  

              fieldPath: metadata.name  

        - name: POD_NAMESPACE  

          valueFrom:  

            fieldRef:  

              fieldPath: metadata.namespace  

        volumeMounts:  

        - name: run  

          mountPath: /run/flannel  

        - name: flannel-cfg  

          mountPath: /etc/kube-flannel/  

      volumes:  

        - name: run  

          hostPath: 

             path: /run/flannel  

        - name: cni  

          hostPath:  

            path: /etc/cni/net.d  

        - name: flannel-cfg  

          configMap:  

            name: kube-flannel-cfg 

原文地址:https://mp.weixin.qq.com/s/KGv6gbXRepG8Zu0-u8odIA

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/xt/centos/8055.shtml

相关文章

风云图片

推荐阅读

返回centos/Redat频道首页