Skip to content

Commit 8594544

Browse files
committed
Enable the serial console on OpenShift Local
To ease the debugging Console tty is either hvc0 or ttyS0
1 parent 39ffead commit 8594544

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: machineconfiguration.openshift.io/v1
2+
kind: MachineConfig
3+
metadata:
4+
labels:
5+
machineconfiguration.openshift.io/role: master
6+
name: 99-openshift-machineconfig-master-console
7+
spec:
8+
kernelArguments:
9+
- console=hvc0
10+
- console=ttyS0
11+

snc.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ cp cluster-network-03-config.yaml ${INSTALL_DIR}/manifests/
149149
cp 99_master-chronyd-mask.yaml $INSTALL_DIR/openshift/
150150
# Add dummy network unit file
151151
cp 99-openshift-machineconfig-master-dummy-networks.yaml $INSTALL_DIR/openshift/
152+
cp 99-openshift-machineconfig-master-console.yaml $INSTALL_DIR/openshift/
152153
# Add kubelet config resource to make change in kubelet
153154
DYNAMIC_DATA=$(base64 -w0 node-sizing-enabled.env) envsubst < 99_master-node-sizing-enabled-env.yaml.in > $INSTALL_DIR/openshift/99_master-node-sizing-enabled-env.yaml
154155
# Add codeReadyContainer as invoker to identify it with telemeter

0 commit comments

Comments
 (0)