- Complete 01-prerequisites.md
- Copy pod-registry.service to
/etc/systemd/system/poc-registry.service
chmod 664 to /etc/systemd/system/poc-registry.service
systemctl daemon-reload
podman pull docker.io/library/registry:2
systemctl enable --now poc-registry
systemctl status poc-registry
- Update pull-secret to have access to local registry 02-create-pull-secret.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Using unsupported SR-IOV NICs w/OpenShift | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: unsupported-nic-ids | |
namespace: openshift-sriov-network-operator | |
data: | |
X520: 8086 154d 10ed | |
X540: 8086 154d 10ee |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If $USERNAME and $PASSWORD are not defined | |
# in the environment prompt for them | |
if [ -z "${USERNAME+x}" ]; then | |
read -p 'Username: ' USERNAME | |
fi | |
if [ -z "${PASSWORD+x}" ]; then | |
read -sp 'Password: ' PASSWORD | |
fi | |
echo -e "\nAttempting to find the K8s API Server and token" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Example of Pod using downwards API | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: dapi-envars-fieldref | |
spec: | |
containers: | |
- name: test-container | |
image: registry.access.redhat.com/ubi8/ubi:latest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/dnsmasq.d/lab.conf | |
############################################################################### | |
# DNS Server (simple) | |
############################################################################### | |
#log-facility=- | |
log-facility=/opt/dnsmasq/dnsmasq.log | |
log-async=25 | |
# default to 150 | |
dns-forward-max=500 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source ~/set-environment | |
ADDING_NODES=${1:-"add-nodes"} | |
USE_RENDERED=${2:-"true"} | |
# path to rhcos-live iso | |
export RHCOS_LIVE=~/images/rhcos-live.x86_64.iso | |
if [ ! -f rhcos-live.x86_64.iso ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euoE pipefail | |
# Redfish commands related to Virtual Media. | |
# Redfish doc reference: https://www.supermicro.com/manuals/other/RedfishRefGuide.pdf | |
export BMC_ADDRESS='' | |
export ISO_IMAGE=http://192.168.117.9:8080/ocp4-rwn-1-small.iso | |
export username_password='Administrator:superuser' |