github.com/openshift/installer@v1.4.17/cmd/openshift-install/testdata/agent/pxe/configurations/sno.txt (about)

     1  # Verify a default configuration for the SNO topology
     2  
     3  exec openshift-install agent create pxe-files --dir $WORK
     4  
     5  stderr 'Created iPXE script agent.x86_64.ipxe'
     6  
     7  exists $WORK/boot-artifacts/agent.x86_64-initrd.img
     8  exists $WORK/boot-artifacts/agent.x86_64-rootfs.img
     9  exists $WORK/boot-artifacts/agent.x86_64-vmlinuz
    10  exists $WORK/boot-artifacts/agent.x86_64.ipxe
    11  exists $WORK/auth/kubeconfig
    12  exists $WORK/auth/kubeadmin-password
    13  
    14  grep 'initrd --name initrd http://user-specified-pxe-infra.com/agent.x86_64-initrd.img' $WORK/boot-artifacts/agent.x86_64.ipxe
    15  grep 'kernel http://user-specified-pxe-infra.com/agent.x86_64-vmlinuz initrd=initrd coreos.live.rootfs_url=http://user-specified-pxe-infra.com/agent.x86_64-rootfs.img .*ignition.firstboot ignition.platform.id=metal' $WORK/boot-artifacts/agent.x86_64.ipxe
    16  ! grep 'coreos.liveiso=' $WORK/boot-artifacts/agent.x86_64.ipxe
    17  
    18  
    19  -- install-config.yaml --
    20  apiVersion: v1
    21  baseDomain: test.metalkube.org
    22  controlPlane: 
    23    name: master
    24    replicas: 1
    25  compute: 
    26  - name: worker
    27    replicas: 0
    28  metadata:
    29    namespace: cluster0
    30    name: ostest
    31  networking:
    32    clusterNetwork:
    33    - cidr: 10.128.0.0/14 
    34      hostPrefix: 23 
    35    networkType: OVNKubernetes
    36    machineNetwork:
    37    - cidr: 192.168.111.0/24
    38    serviceNetwork: 
    39    - 172.30.0.0/16
    40  platform:
    41    none: {}
    42  sshKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDK6UTEydcEKzuNdPaofn8Z2DwgHqdcionLZBiPf/zIRNco++etLsat7Avv7yt04DINQd5zjxIFgG8jblaUB5E5C9ClUcMwb52GO0ay2Y9v1uBv1a4WhI3peKktAzYNk0EBMQlJtXPjRMrC9ylBPh+DsBHMu+KmDnfk7PIwyN4efC8k5kSRuPWoNdme1rz2+umU8FSmaWTHIajrbspf4GQbsntA5kuKEtDbfoNCU97o2KrRnUbeg3a8hwSjfh3u6MhlnGcg5K2Ij+zivEsWGCLKYUtE1ErqwfIzwWmJ6jnV66XCQGHf4Q1iIxqF7s2a1q24cgG2Z/iDXfqXrCIfy4P7b/Ztak3bdT9jfAdVZtdO5/r7I+O5hYhF86ayFlDWzZWP/ByiSb+q4CQbfVgK3BMmiAv2MqLHdhesmD/SmIcoOWUF6rFmRKZVFFpKpt5ATNTgUJ3JRowoXrrDruVXClUGRiCS6Zabd1rZ3VmTchaPJwtzQMdfIWISXj+Ig+C4UK0=
    43  pullSecret: '{"auths": {"quay.io": {"auth": "c3VwZXItc2VjcmV0Cg=="}}}'
    44  
    45  -- agent-config.yaml --
    46  apiVersion: v1alpha1
    47  metadata:
    48    name: ostest
    49    namespace: cluster0
    50  rendezvousIP: 192.168.111.20
    51  bootArtifactsBaseURL: http://user-specified-pxe-infra.com