github.com/Racer159/jackal@v0.32.7-0.20240401174413-0bd2339e4f2e/packages/distros/k3s/jackal.yaml (about)

     1  kind: JackalInitConfig
     2  metadata:
     3    name: distro-k3s
     4    description: Used to establish a new Jackal cluster
     5  
     6  components:
     7    # AMD-64 version of the K3s stack
     8    - name: k3s
     9      import:
    10        path: common
    11        name: k3s
    12      only:
    13        cluster:
    14          architecture: amd64
    15      files:
    16        # Include the actual K3s binary
    17        - source: https://github.com/k3s-io/k3s/releases/download/v1.28.4+k3s2/k3s
    18          shasum: 9014535a4cd20c788282d60398a06279983562093455b53ab76701539ce67acf
    19          target: /usr/sbin/k3s
    20          executable: true
    21          # K3s magic provides these tools when symlinking
    22          symlinks:
    23            - /usr/sbin/kubectl
    24            - /usr/sbin/ctr
    25            - /usr/sbin/crictl
    26        # Transfer the K3s images for containerd to pick them up
    27        - source: https://github.com/k3s-io/k3s/releases/download/v1.28.4+k3s2/k3s-airgap-images-amd64.tar.zst
    28          shasum: bc4d05bad56a583c80ff443d60e8277a136cc4357dc8527702d38b5cca28880d
    29          target: /var/lib/rancher/k3s/agent/images/k3s.tar.zst
    30      actions:
    31        onDeploy:
    32          before:
    33            - cmd: if [ "$(uname -m)" != "x86_64" ]; then echo "this package architecture is amd64, but the target system has a different architecture. These architectures must be the same" && exit 1; fi
    34              description: Check that the host architecture matches the package architecture
    35              maxRetries: 0
    36  
    37    # ARM-64 version of the K3s stack
    38    - name: k3s
    39      import:
    40        path: common
    41        name: k3s
    42      only:
    43        cluster:
    44          architecture: arm64
    45      files:
    46        # Include the actual K3s binary
    47        - source: https://github.com/k3s-io/k3s/releases/download/v1.28.4+k3s2/k3s-arm64
    48          shasum: 1ae72ca06d3302f3e86ef92e6e8f84e14a084da69564e87d6e2e75f62e72388d
    49          target: /usr/sbin/k3s
    50          executable: true
    51          # K3s magic provides these tools when symlinking
    52          symlinks:
    53            - /usr/sbin/kubectl
    54            - /usr/sbin/ctr
    55            - /usr/sbin/crictl
    56        # Transfer the K3s images for containerd to pick them up
    57        - source: https://github.com/k3s-io/k3s/releases/download/v1.28.4+k3s2/k3s-airgap-images-arm64.tar.zst
    58          shasum: 50621ae1391aec7fc66ca66a46a0e9fd48ce373a58073000efdc278233adc64b
    59          target: /var/lib/rancher/k3s/agent/images/k3s.tar.zst
    60      actions:
    61        onDeploy:
    62          before:
    63            - cmd: if [ "$(uname -m)" != "aarch64" ] && [ "$(uname -m)" != "arm64" ]; then echo "this package architecture is arm64, but the target system has a different architecture. These architectures must be the same" && exit 1; fi
    64              description: Check that the host architecture matches the package architecture
    65              maxRetries: 0