github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/applications/calico/example/Clusterfile.yaml (about)

     1  # Copyright © 2021 Alibaba Group Holding Ltd.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  apiVersion: sealer.cloud/v2
    16  kind: Cluster
    17  metadata:
    18    name: default-kubernetes-cluster
    19  spec:
    20    image: kubernetes:v1.19.8
    21    ssh:
    22      passwd: xxx
    23      port: "2222"
    24    hosts:
    25      - ips: [ 192.168.0.2 ]
    26        roles: [ master ]
    27        ssh:
    28          passwd: yyy
    29          port: "22"
    30      - ips: [ 192.168.0.3,192.168.0.4 ]
    31        roles: [ master ]
    32      - ips: [ 192.168.0.5 ]
    33        roles: [ node ]
    34  ---
    35  apiVersion: sealer.aliyun.com/v1alpha1
    36  kind: Config
    37  metadata:
    38    name: calico
    39  spec:
    40    path: etc/custom-resources.yaml
    41    data: |
    42      apiVersion: operator.tigera.io/v1
    43      kind: Installation
    44      metadata:
    45        name: default
    46      spec:
    47        registry: sea.hub:5000
    48        calicoNetwork:
    49          ipPools:
    50            - blockSize: 26
    51              cidr: 100.64.0.0/10
    52              encapsulation: VXLANCrossSubnet
    53              natOutgoing: Enabled
    54              nodeSelector: all()