github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/pkg/plugin/test/test_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.aliyun.com/v2alpha1
    16  kind: Cluster
    17  metadata:
    18    name: my-cluster
    19  spec:
    20    image: registry.cn-qingdao.aliyuncs.com/sealer-io/kubernetes:v1.19.8
    21    ssh:
    22      # SSH login password, if you use the key to log in, you don’t need to set it
    23      passwd: Seadent123
    24      # ssh login user
    25      user: root
    26      pk: xxx
    27      pkPasswd: xxx
    28  
    29    hosts:
    30    - ips: [172.17.102.186]
    31      roles: [master]
    32  ---
    33  apiVersion: sealer.aliyun.com/v2alpha1
    34  kind: Plugin
    35  metadata:
    36    name: MyShell
    37  spec:
    38    action: PreInstall
    39    type: SHELL
    40    on: "node-role.kubernetes.io/master="
    41    data: |
    42      ip a
    43  ---
    44  apiVersion: sealer.aliyun.com/v2alpha1
    45  kind: Plugin
    46  metadata:
    47    name: MyLabel
    48  spec:
    49    action: PostInstall
    50    type: LABEL
    51    data: |
    52      172.17.102.186 ssd=true