Skip to content

Instantly share code, notes, and snippets.

@agracey
agracey / fleet.yaml
Last active July 9, 2024 18:26
NV-on-Edge
defaultNamespace: neuvector
dependsOn:
- name: neuvector-crd
helm:
chart: core
repo: https://neuvector.github.io/neuvector-helm/
releaseName: neuvector
values:
crdwebhook:
enabled: false
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: display-discover-daemonset
namespace: akri
spec:
selector:
matchLabels:
name: display-discover
template:
apiVersion: v1
kind: ConfigMap
metadata:
name: xconfig
data:
.xinitrc: |-
#!/bin/bash
set -x
xset -dpms
apiVersion: v1
data:
grub.cfg: |-
search --file --set=root /boot/kernel.xz
# Load custom config file
set custom="/boot/grub2/elementalversion"
search --no-floppy --file --set=custom_blk "${custom}"
if [ "${custom_blk}" ] ; then
load_env -f "(${custom_blk})${custom}"
@agracey
agracey / fleet.yaml
Last active November 18, 2022 22:11
Akri-via-Fleet
defaultNamespace: akri
helm:
chart: akri-dev
repo: https://project-akri.github.io/akri/
releaseName: akri
values:
debugEcho:
discovery:
enabled: true
configuration:
{
"files": [
{
"content": "W1VuaXRdCkRlc2NyaXB0aW9uPWVsZW1lbnRhbF9zdGF0aWNfbmV0d29yayBzZXR1cApXYW50cz1uZXR3b3JrLXByZS50YXJnZXQKQmVmb3JlPW5ldHdvcmstcHJlLnRhcmdldApDb25kaXRpb25QYXRoRXhpc3RzR2xvYj0vZXRjL3JhbmNoZXIvc3RhdGljLWlmcy9pZmNmZy1ldGgqCltTZXJ2aWNlXQpVc2VyPXJvb3QKR3JvdXA9cm9vdApUeXBlPW9uZXNob3QKUmVtYWluQWZ0ZXJFeGl0PXllcwpFeGVjU3RhcnQ9L3Jvb3QvYmluL2VsZW1lbnRhbF9zdGF0aWMtaWZzCltJbnN0YWxsXQpXYW50ZWRCeT1tdWx0aS11c2VyLnRhcmdldCBuZXR3b3JrLW9ubGluZS50YXJnZXQ=",
"path": "/etc/systemd/system/elemental-static-network.service",
"permissions": "0644"
},
{
"content": "IyEvYmluL2Jhc2gKIyMjIyMjIyMjIyMjIyMjIwojCiMgQ2FsbGVkIGJ5IGVsZW1lbnRhbF9zdGF0aWNfbmV0d29yay5zZXJ2aWNlIHN5c3RlbWQgc2VydmljZQojCiMjIyMjIyMjIyMjIyMjIyMKc2V0IC14IC1lCmZvciBmaWxlIGluIC9ldGMvcmFuY2hlci9zdGF0aWMtaWZzL2lmY2ZnLSoKZG8KIyAgICAgICBtYWtlIGJhY2t1cHMgb2YgY29uZmlncwojICAgICAgIGZpbGUgbWludXMgcGF0aAogICAgICAgIGZpbGVuYW1lPSIke2ZpbGUjIyovfSIKICAgICAgICBjcCAvZXRjL3N5c2NvbmZpZy9uZXR3b3JrLyRmaWxlbmFtZSAvZXRjL3N5c2NvbmZpZy9uZ
#!/bin/bash
# Note: ros-image-build requires the input image to be pushed
# due to buildx usage.
# Export this here so users dont need to
export DOCKER_BUILDKIT=1
set -e
build()

Install Eventing

kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.5.1/eventing-crds.yaml
kubectl apply -f https://github.com/knative/eventing/releases/download/knative-v1.5.1/eventing-core.yaml

Install Tekton

kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml
apiVersion: v1
data:
config: |-
#cloud-config should be pulled from registration object via kubectl
elemental:
registration:
url: <Your registration here>
grub.cfg: |-
search --file --set=root /boot/kernel.xz

This guide will walk you through how to set up and use the proof of concept Rancher OS Management capabilities. It was written on March 23rd 2022. If you notice any errors, please reach out to me on the rancher-users.slack.com either through a DM to Andrew Gracey or the #cos-toolkit channel (cOS was the old name of Elemental)

Pre-reqs:

  • Rancher Manager 2.6.x
  • Docker or Rancher Desktop
  • Server or VM with TPM 2.x

Notes:

  • Until release of SLE Micro 5.2, we will be using an OpenSUSE base image