• k8s init.yaml


    apiVersion: kubeadm.k8s.io/v1beta1
    kind: InitConfiguration
    localAPIEndpoint:
      advertiseAddress: 192.168.50.22
      bindPort: 6443
    ---
    apiVersion: kubeadm.k8s.io/v1beta1
    kind: ClusterConfiguration
    kubernetesVersion: v1.18.0
    controlPlaneEndpoint: apiserver.cluster.local:6443
    imageRepository: k8s.gcr.io
    networking:
      # dnsDomain: cluster.local
      podSubnet: 100.64.0.0/10
      serviceSubnet: 10.96.0.0/12
    apiServer:
      certSANs:
      - 127.0.0.1
      - apiserver.cluster.local
      - 192.168.50.22
      - 192.168.50.23
      - 192.168.50.24
      - 10.103.97.2
      extraArgs:
        feature-gates: TTLAfterFinished=true
      extraVolumes:
      - name: localtime
        hostPath: /etc/localtime
        mountPath: /etc/localtime
        readOnly: true
        pathType: File
    controllerManager:
      extraArgs:
        feature-gates: TTLAfterFinished=true
        experimental-cluster-signing-duration: 876000h
      extraVolumes:
      - hostPath: /etc/localtime
        mountPath: /etc/localtime
        name: localtime
        readOnly: true
        pathType: File
    scheduler:
      extraArgs:
        feature-gates: TTLAfterFinished=true
      extraVolumes:
      - hostPath: /etc/localtime
        mountPath: /etc/localtime
        name: localtime
        readOnly: true
        pathType: File
    ---
    apiVersion: kubeproxy.config.k8s.io/v1alpha1
    kind: KubeProxyConfiguration
    mode: ipvs
    ipvs:
      excludeCIDRs: 
      - 10.103.97.2/32
  • 相关阅读:
    34、JS/AJAX
    33、mybatis(二)
    32、mybatis
    31、springmvc(注解)
    30、springmvc
    29、Oralce(五)
    Spring学习之路-SpringBoot简单入门
    Spring学习之路-从放弃到入门
    心情日记
    Spring学习之路-从入门到放弃
  • 原文地址:https://www.cnblogs.com/qinghe123/p/13750453.html
Copyright © 2020-2023  润新知