github.com/alibaba/sealer@v0.8.6-0.20220430115802-37a2bdaa8173/test/suites/apply/fixtures/config_plugin_for_test.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: zlink.aliyun.com/v1alpha1
    16  kind: Cluster
    17  metadata:
    18    name: my-test-cluster
    19  spec:
    20    image: sealer-io/kubernetes:v1.19.8
    21    provider: ALI_CLOUD
    22    ssh:
    23      passwd: Sealer123
    24      pk: xxx
    25      pkPasswd: xxx
    26      user: root
    27    network:
    28      podCIDR: 100.64.0.0/10
    29      svcCIDR: 10.96.0.0/22
    30    certSANS:
    31      - aliyun-inc.com
    32      - 10.0.0.2
    33  
    34    masters:
    35      cpu: 4
    36      memory: 4
    37      count: 1
    38      systemDisk: 100
    39      dataDisks:
    40        - 100
    41    nodes:
    42      cpu: 4
    43      memory: 4
    44      count: 1
    45      systemDisk: 100
    46      dataDisks:
    47        - 100
    48  ---
    49  apiVersion: sealer.aliyun.com/v1alpha1
    50  kind: Config
    51  metadata:
    52    name: mysql-config
    53  spec:
    54    path: etc/mysql.yaml
    55    data: |
    56      test
    57  ---
    58  apiVersion: sealer.aliyun.com/v1alpha1
    59  kind: Config
    60  metadata:
    61    name: redis-config
    62  spec:
    63    path: etc/redis.yaml
    64    data: |
    65      test
    66  ---
    67  apiVersion: sealer.aliyun.com/v1alpha1
    68  kind: Plugin
    69  metadata:
    70    name: clusterfile_originally
    71  spec:
    72    type: SHELL
    73    action: Originally
    74    data: |
    75      hostname && echo "$env: OriginallyShell was successfully run from Clusterfile"
    76  ---
    77  apiVersion: sealer.aliyun.com/v1alpha1
    78  kind: Plugin
    79  metadata:
    80    name: clusterfile_prejoin
    81  spec:
    82    type: SHELL
    83    action: PreJoin
    84    data: |
    85      hostname && echo "$env: PreJoin from Clusterfile was successfully run from Clusterfile"
    86  ---
    87  apiVersion: sealer.aliyun.com/v2alpha1
    88  kind: Plugin
    89  metadata:
    90    name: clusterfile_PostInstall_PostJoin
    91  spec:
    92    action: PostInstall|PostJoin
    93    type: SHELL
    94    'on': "sealer-test=true"
    95    data: |
    96      hostname && echo "PostInstall|PostJoin from Clusterfile on sealer-test=true" `date`
    97  ---
    98  apiVersion: sealer.aliyun.com/v1alpha1
    99  kind: Plugin
   100  metadata:
   101    name: clusterfile_postjoin
   102  spec:
   103    type: SHELL
   104    action: PostJoin
   105    data: |
   106      hostname && echo "$env: PostJoin was successfully run from Clusterfile"
   107  ---
   108  apiVersion: sealer.aliyun.com/v1alpha1
   109  kind: Plugin
   110  metadata:
   111    name: clusterfile_preclean
   112  spec:
   113    type: SHELL
   114    action: PreClean
   115    data: |
   116      hostname && echo "$env: PreClean was successfully run from Clusterfile"
   117  ---
   118  apiVersion: sealer.aliyun.com/v1alpha1
   119  kind: Plugin
   120  metadata:
   121    name: clusterfile_postclean
   122  spec:
   123    type: SHELL
   124    action: PostClean
   125    data: |
   126      hostname && echo "$env: PostJoin was successfully run from Clusterfile"
   127  ---
   128  apiVersion: sealer.aliyun.com/v1alpha1
   129  kind: Plugin
   130  metadata:
   131    name: clusterfile_postinstall
   132  spec:
   133    type: SHELL
   134    action: PostInstall
   135    data: |
   136      echo "$env: PostInstallShell was successfully run from Clusterfile"
   137  ---
   138  apiVersion: sealer.aliyun.com/v1alpha1
   139  kind: Plugin
   140  metadata:
   141    name: LABEL
   142  spec:
   143    type: LABEL
   144    action: PreGuest
   145    data: |
   146      172.17.102.186 ssd=true
   147  ---
   148  apiVersion: sealer.aliyun.com/v1alpha1
   149  kind: Plugin
   150  metadata:
   151    name: HOSTNAME
   152  spec:
   153    type: HOSTNAME
   154    action: PreInit
   155    data: |
   156      172.17.102.186 master-0