Skip to content

Instantly share code, notes, and snippets.

defaultNamespace: minibroker-charts
provisioning:
mariadb:
overrideParams:
db:
user: "dbuser"
name: "default"
replication:
enabled: false
import axios from 'axios'
import qs from 'qs'
const uaa_uri = 'https://uaa.cap.staging.explore.suse.dev'
const cf_uri = 'https://api.cap.staging.explore.suse.dev'
const cf_api_user = 'admin'
const cf_api_password = 'REDACTED'
const login = async ()=>{
apiVersion: v1
kind: ServiceAccount
metadata:
name: epinio-gitjob
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: epinio-gitjob
@agracey
agracey / Epinio-bp-config.md
Last active July 8, 2022 18:15
Language specific buildpack configuration options
@agracey
agracey / setup_gitjob.md
Last active September 15, 2021 19:36
Using GitJob to automate Epinio installations

One of the more interesting features of Rio was that it would let you set up a deployment that rebuilds and republishes when your code stored in Git is changed.

We can recreate this functionality using the GitJob CRD that's a part of Rancher Fleet.

NOTE: We will improve this experience in the future!

Setup

Install GitJob

apiVersion: batch/v1
kind: Job
metadata:
name: test-buildpack
namespace: tekton-staging
spec:
ttlSecondsAfterFinished: 600
template:
spec:
nodeSelector:
install:
device: /dev/nvme0n1
users:
- name: root
passwd: root
#!/bin/bash
set -e
build()
{
dockerfile | docker build -f - --build-arg IMAGE="${IMAGE}" . "${@}" -t elemental/iso:latest
}
dockerfile()

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
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