github.com/openshift/installer@v1.4.17/cmd/openshift-install/testdata/agent/image/validations/no-rendezvousip.txt (about)

     1  # Verify that when the rendezvousIP is not defined in the agent-config.yaml, it is then
     2  # selected amongst the non-worker nodes (given that interfaces are properly defined)
     3  
     4  exec openshift-install agent create image --dir $WORK
     5  
     6  stderr 'The rendezvous host IP \(node0 IP\) is 10.19.17.126'
     7  
     8  exists $WORK/agent.x86_64.iso
     9  exists $WORK/auth/kubeconfig
    10  exists $WORK/auth/kubeadmin-password
    11  
    12  -- install-config.yaml --
    13  apiVersion: v1
    14  baseDomain: test.metalkube.org
    15  controlPlane: 
    16    name: master
    17    replicas: 3
    18  compute: 
    19  - name: worker
    20    replicas: 1
    21  metadata:
    22    namespace: cluster0
    23    name: ostest
    24  networking:
    25    clusterNetwork:
    26    - cidr: 10.128.0.0/14 
    27      hostPrefix: 23 
    28    networkType: OVNKubernetes
    29    machineNetwork:
    30    - cidr: 192.168.111.0/24
    31    serviceNetwork: 
    32    - 172.30.0.0/16
    33  platform:
    34      baremetal:
    35        apiVips: 
    36          - 192.168.111.5
    37        ingressVips: 
    38          - 192.168.111.4
    39  sshKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDK6UTEydcEKzuNdPaofn8Z2DwgHqdcionLZBiPf/zIRNco++etLsat7Avv7yt04DINQd5zjxIFgG8jblaUB5E5C9ClUcMwb52GO0ay2Y9v1uBv1a4WhI3peKktAzYNk0EBMQlJtXPjRMrC9ylBPh+DsBHMu+KmDnfk7PIwyN4efC8k5kSRuPWoNdme1rz2+umU8FSmaWTHIajrbspf4GQbsntA5kuKEtDbfoNCU97o2KrRnUbeg3a8hwSjfh3u6MhlnGcg5K2Ij+zivEsWGCLKYUtE1ErqwfIzwWmJ6jnV66XCQGHf4Q1iIxqF7s2a1q24cgG2Z/iDXfqXrCIfy4P7b/Ztak3bdT9jfAdVZtdO5/r7I+O5hYhF86ayFlDWzZWP/ByiSb+q4CQbfVgK3BMmiAv2MqLHdhesmD/SmIcoOWUF6rFmRKZVFFpKpt5ATNTgUJ3JRowoXrrDruVXClUGRiCS6Zabd1rZ3VmTchaPJwtzQMdfIWISXj+Ig+C4UK0=
    40  pullSecret: '{"auths": {"quay.io": {"auth": "c3VwZXItc2VjcmV0Cg=="}}}'
    41  
    42  -- agent-config.yaml --
    43  apiVersion: v1alpha1
    44  metadata:
    45    name: ostest
    46    namespace: cluster0
    47  hosts:
    48    - hostname: worker-0
    49      role: worker
    50      interfaces:
    51       - name: enp1s0
    52         macAddress: aa:bb:dc:dd:a8:04
    53      networkConfig:
    54        interfaces:
    55          - name: enp1s0
    56            type: ethernet
    57            state: up
    58            mac-address: aa:bb:dc:dd:a8:04
    59            ipv4:
    60              enabled: true
    61              address:
    62                - ip: 10.19.17.129
    63                  prefix-length: 23
    64              dhcp: false
    65    - hostname: master-0
    66      role: master
    67      interfaces:
    68       - name: enp1s0
    69         macAddress: aa:bb:dc:dd:a8:01
    70      networkConfig:
    71        interfaces:
    72          - name: enp1s0
    73            type: ethernet
    74            state: up
    75            mac-address: aa:bb:dc:dd:a8:01
    76            ipv4:
    77              enabled: true
    78              address:
    79                - ip: 10.19.17.126
    80                  prefix-length: 23
    81              dhcp: false
    82    - hostname: master-1
    83      role: master
    84      interfaces:
    85       - name: enp1s0
    86         macAddress: aa:bb:dc:dd:a8:02
    87      networkConfig:
    88        interfaces:
    89          - name: enp1s0
    90            type: ethernet
    91            state: up
    92            mac-address: aa:bb:dc:dd:a8:02
    93            ipv4:
    94              enabled: true
    95              address:
    96                - ip: 10.19.17.127
    97                  prefix-length: 23
    98              dhcp: false
    99    - hostname: master-2
   100      role: master
   101      interfaces:
   102       - name: enp1s0
   103         macAddress: aa:bb:dc:dd:a8:03
   104      networkConfig:
   105        interfaces:
   106          - name: enp1s0
   107            type: ethernet
   108            state: up
   109            mac-address: aa:bb:dc:dd:a8:03
   110            ipv4:
   111              enabled: true
   112              address:
   113                - ip: 10.19.17.128
   114                  prefix-length: 23
   115              dhcp: false