You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* *{op-system-base} packages*. You can download {op-system-base-full} packages from the link:https://access.redhat.com/downloads/content/479/ver=/rhel---9/9.1/x86_64/packages[Red Hat Customer Portal], such as chrony, firewalld, and iputils.
85
94
+
86
-
.Example out-of-cluster Containerfile to apply the libreswan utility
95
+
.Example out-of-cluster Containerfile to apply the rsyslog utility
87
96
[source,yaml,subs="attributes+"]
88
97
----
89
-
# Get {op-system} base image of target cluster `oc adm release info --image-for rhel-coreos`
90
-
# hadolint ignore=DL3006
98
+
# Using a 4.18.0 image
91
99
FROM quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256...
92
-
93
-
# Install our config file
94
-
COPY my-host-to-host.conf /etc/ipsec.d/
95
-
96
-
# {op-system-base} entitled host is needed here to access {op-system-base} packages
97
-
# Install libreswan as extra {op-system-base} package
98
-
RUN dnf install -y libreswan && \
99
-
dnf clean all && \
100
-
systemctl enable ipsec && \
100
+
# Install rsyslog package
101
+
RUN dnf install -y rsyslog && \
101
102
ostree container commit
103
+
# Copy your custom configuration in
104
+
ADD remote.conf /etc/rsyslog.d/remote.conf
102
105
----
103
-
+
104
-
Because libreswan requires additional {op-system-base} packages, the image must be built on an entitled {op-system-base} host. For RHEL entitlements to work, you must copy the `etc-pki-entitlement` secret into the `openshift-machine-config-operator` namespace.
105
106
106
107
* *Third-party packages*. You can download and install RPMs from third-party organizations, such as the following types of packages:
107
108
+
@@ -129,7 +130,6 @@ RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.n
129
130
[source,yaml,subs="attributes+"]
130
131
----
131
132
# Get {op-system} base image of target cluster `oc adm release info --image-for rhel-coreos`
132
-
# hadolint ignore=DL3006
133
133
FROM quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256...
134
134
135
135
#Enable EPEL (more info at https://docs.fedoraproject.org/en-US/epel/ ) and install htop
@@ -139,7 +139,7 @@ RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.n
139
139
ostree container commit
140
140
----
141
141
+
142
-
This Containerfile installs the {op-system-base} fish program. Because fish requires additional {op-system-base} packages, the image must be built on an entitled {op-system-base} host. For {op-system-base} entitlements to work, you must copy the `etc-pki-entitlement` secret into the `openshift-machine-api` namespace.
142
+
This Containerfile installs the {op-system-base} fish program. Because fish requires additional {op-system-base} packages, the image must be built on an entitled {op-system-base} host. For {op-system-base} entitlements to work, you must copy the `etc-pki-entitlement` secret into the `openshift-machine-config-operator` namespace.
143
143
+
144
144
.Example on-cluster Containerfile to apply a third-party package that has {op-system-base} dependencies
145
145
[source,yaml]
@@ -157,7 +157,6 @@ RUN dnf install -y https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/Pac
157
157
[source,yaml,subs="attributes+"]
158
158
----
159
159
# Get {op-system} base image of target cluster `oc adm release info --image-for rhel-coreos`
160
-
# hadolint ignore=DL3006
161
160
FROM quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256...
162
161
163
162
# {op-system-base} entitled host is needed here to access {op-system-base} packages
Copy file name to clipboardExpand all lines: modules/coreos-layering-configuring-on.adoc
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,17 @@ Note the following limitations when working with the on-cluster layering feature
82
82
83
83
* You have enabled the `TechPreviewNoUpgrade` feature set by using the feature gates. For more information, see "Enabling features using feature gates".
84
84
85
-
* You have a copy of the pull secret in the `openshift-machine-config-operator` namespace that the MCO needs to pull the base operating system image.
85
+
* You have a copy of the pull secret in the `openshift-machine-config-operator` namespace that the MCO needs to pull the base operating system image.
86
+
+
87
+
For example, if you are using the global pull secret, you can run the following command:
// If you are using the global pull secret, the MCO automatically creates a copy when you first create a `MachineOSconfig` object.
@@ -133,7 +143,7 @@ spec:
133
143
name: builder-dockercfg-7lzwl
134
144
buildOutputs: <9>
135
145
currentImagePullSecret:
136
-
name: builder-dockercfg-7lzwl
146
+
name: builder-dockercfg-mtcl23
137
147
----
138
148
<1> Specifies the `machineconfiguration.openshift.io/v1` API that is required for `MachineConfig` CRs.
139
149
<2> Specifies a name for the `MachineOSConfig` object. This name is used with other on-cluster layering resources. The examples in this documentation use the name `layered`.
0 commit comments