Skip to content

Instantly share code, notes, and snippets.

View mariano80's full-sized avatar

Mariano mariano80

View GitHub Profile
@mariano80
mariano80 / gist:4d78f461f06175981a86f809caa8464a
Created March 23, 2022 20:24
Rancher private registry with self-signed certificate
For Rancher K8s to use a registry like harbor installed locally with selfsigned certificate:
1 - In /etc/rancher/rke2/registries.yaml configure the registry
mirrors:
docker.io:
endpoint:
- "https://harbor.local"
configs:
"harbor.local":
@mariano80
mariano80 / ifcfg-vlan-bridge-example
Last active March 15, 2022 11:27 — forked from dutchiechris/ifcfg-vlan-bridge-example
CentOS 7 ifcfg syntax for VLAN tagged interface + bridge for KVM (referenced from http://www.beginswithdata.com/2016/12/30/centos7-kvm-coreos/)
[root@server02 network-scripts]# cat ifcfg-enp14s0
DEVICE=enp14s0
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
NM_CONTROLLED=no
[root@server02 network-scripts]# cat ifcfg-enp14s0.35
DEVICE=enp14s0.35
TYPE=Ethernet