Skip to content

Instantly share code, notes, and snippets.

View aslam-mulkin's full-sized avatar

Aslam Mulkin aslam-mulkin

View GitHub Profile
@aslam-mulkin
aslam-mulkin / Vagrantfile
Last active February 23, 2023 09:19
Vagrant file for building RHEL cluster with iSCSI shared storage.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Need to enable trigger plugin with "vagrant plugin install trigger" command first
# Get a free RHEL developer subscription at developer.redhat.com
file_to_disk = './disk-0-1.vdi'
servers = [
{
:name => "iscsi-server",
mkisofs -U -A "RHCOS-x86_64" -V "RHCOS-x86_64" -volset "RHCOS-x86_64" -J -joliet-long -r -v -T -x ./lost+found -o /tmp/iso/${NODE}.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot .
@aslam-mulkin
aslam-mulkin / isolinux.cfg
Created December 8, 2022 05:46
isolinux configuration for static ip in RHCOS
append initrd=/images/pxeboot/initrd.img,/images/ignition.img random.trust_cpu=on rd.luks.options=discard coreos.liveiso=RHCOS-CustomIso ignition.firstboot ignition.platform.id=metal ip=${IP}::${GW}:${NM}:${HN}:ens192:none nameserver=${NS1} nameserver=${NS2} coreos.inst.image_url=http://${HELPER}:80/ocp/install/bios.raw.gz coreos.inst.install_dev=sda coreos.inst.ignition_url=http://${HELPER}:80/ocp/ignition/${ROLE}.ign
gitlab:
gitaly:
persistence:
storageClass: CUSTOM_STORAGE_CLASS_NAME
size: 20Gi
postgresql:
persistence:
storageClass: CUSTOM_STORAGE_CLASS_NAME
size: 8Gi
minio:
@aslam-mulkin
aslam-mulkin / ingress.yaml
Created April 8, 2021 09:55
medium-post-nginx-https
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: nginx.example.com
http: