1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 09:46:53 +01:00
Files
openshift-docs/modules/networking-osp-enabling-metadata.adoc

67 lines
1.8 KiB
Plaintext

// Module included in the following assemblies:
//
// * installing/installing_openstack/installing-openstack-user.adoc
:_mod-docs-content-type: PROCEDURE
[id="networking-osp-enabling-metadata_{context}"]
= Enabling the {rh-openstack} metadata service as a mountable drive
You can apply a machine config to your machine pool that makes the {rh-openstack-first} metadata service available as a mountable drive.
[NOTE]
====
The following machine config enables the display of {rh-openstack} network UUIDs from within the SR-IOV Network Operator. This configuration simplifies the association of SR-IOV resources to cluster SR-IOV resources.
====
.Procedure
. Create a machine config file from the following template:
+
.A mountable metadata service machine config file
[source,yaml]
----
kind: MachineConfig
apiVersion: machineconfiguration.openshift.io/v1
metadata:
name: 20-mount-config <1>
labels:
machineconfiguration.openshift.io/role: worker
spec:
config:
ignition:
version: 3.2.0
systemd:
units:
- name: create-mountpoint-var-config.service
enabled: true
contents: |
[Unit]
Description=Create mountpoint /var/config
Before=kubelet.service
[Service]
ExecStart=/bin/mkdir -p /var/config
[Install]
WantedBy=var-config.mount
- name: var-config.mount
enabled: true
contents: |
[Unit]
Before=local-fs.target
[Mount]
Where=/var/config
What=/dev/disk/by-label/config-2
[Install]
WantedBy=local-fs.target
----
<1> You can substitute a name of your choice.
. From a command line, apply the machine config:
+
[source,terminal]
----
$ oc apply -f <machine_config_file_name>.yaml
----