Prepare the IBM Z® environment
Before you start the migration, you must prepare your environment for the applications and the middleware.
Prerequisites
- You have a Red Hat® OpenShift® cluster installed.
- You have the Red Hat OpenShift Virtualization Operator installed.
- You have access to the Red Hat OpenShift cluster as a user with `cluster-admin` privileges.
- You have sufficient storage available.Note: For production environments, Red Hat OpenShift Data Foundation is recommended.
- You have a second network interface card (NIC) available for Linux® bridging, if required.
Create a secret
- Create a secret with the public key by running the following
command:
oc create secret generic my-public-key-secret \ --from-literal=publickey=<secret_key>"Note: For production environments, consider security policies for encryption. - Alternatively, you can create the secret by using a YAML file.
- Convert your public key into Base64 by running the following
command:
cat id_rsa.pub | base64 -w0 - Create a
secret.yamlwith the generated key, similar to the following:apiVersion: v1 kind: Secret metadata: name: my-public-key-secret type: Opaque data: publickey: <BASE64_ENCODED_PUBLIC_KEY> - Create the secret from the
secret.yamlfile by running the following command:oc apply -f secret.yaml
- Convert your public key into Base64 by running the following
command:
A secret is created in the current active namespace so that the specified public key gets injected to the VM during cloud-init. The VM can now be accessed externally.