Skip to content

Instantly share code, notes, and snippets.

@ashisha2307
ashisha2307 / bond0-bridge-vlan.yaml
Created November 15, 2024 18:46
bond0-bridge-vlan
apiVersion: nmstate.io/v1
kind: NodeNetworkConfigurationPolicy
metadata:
name: bond0-bridge-vlan
spec:
desiredState:
interfaces:
- bridge:
port:
- name: bond0
@ashisha2307
ashisha2307 / ldap-sync.yaml
Last active October 17, 2024 17:26
ldap-sync
kind: LDAPSyncConfig
apiVersion: v1
url: ldaps://LDAP_SERVICE_IP
bindDN: service-account
bindPassword: '********'
insecure: false
ca: /ldap-sync/ca.crt
activeDirectory:
groupsQuery:
baseDN: "ou=groups,dc=example,dc=com"
@ashisha2307
ashisha2307 / node-fence.md
Created October 11, 2024 17:56
Fenceagent operator

use the follwoing yaml

apiVersion: fence-agents-remediation.medik8s.io/v1alpha1
kind: FenceAgentsRemediationTemplate
metadata:
  name: fenceagentsremediationtemplate-default
  namespace: openshift-workload-availability
spec:
 template:

Mirroring Openshift 4 Repositories for disconnected install (air gapped)

Mirroring OpenShift images from the internet to a local disconnected environment is an effective method to expedite the installation process in isolated networks. By obtaining the necessary images from the internet and transferring them to the local environment, the installation can be carried out without relying on an internet connection.

This approach offers several advantages. It allows for a faster and more efficient installation process, as the images are readily available in the local environment. This eliminates the need to download the images from the internet during installation, which can be time-consuming and prone to interruptions in disconnected networks.

Steps to follow

All the command below should be run as root user