Skip to content

Commit e9c1036

Browse files
authored
Merge pull request #310 from beraldoleal/disconnected-imageset
airgap: enable disconnected installation for Trustee operator
2 parents 1e52764 + 81f7ee6 commit e9c1036

6 files changed

Lines changed: 133 additions & 0 deletions

File tree

docs/disconnected/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Disconnected Installation
2+
3+
This directory contains `ImageSetConfiguration` files for mirroring the
4+
Trustee operator in disconnected (air-gapped) environments using `oc-mirror`.
5+
6+
## What is covered
7+
8+
Each `imageset-config-<ocp-version>.yaml` file mirrors:
9+
10+
- The Trustee operator from the Red Hat operator catalog, including the
11+
catalog index, operator bundle, and operator controller image.
12+
- The KBS operand image, listed as `relatedImages` in the operator bundle
13+
and automatically picked up by `oc-mirror`.
14+
15+
One file is provided per supported OCP version.
16+
17+
## Usage
18+
19+
1. Select the file matching your OCP version, e.g. `imageset-config-4.17.yaml`.
20+
21+
2. Edit the `imageURL` field to point to your internal registry:
22+
23+
```yaml
24+
storageConfig:
25+
registry:
26+
imageURL: <your-registry>/mirror/oc-mirror-metadata
27+
```
28+
29+
3. Run `oc-mirror` to mirror all images to your internal registry:
30+
31+
```bash
32+
oc-mirror --config imageset-config-4.17.yaml docker://<your-registry>
33+
```
34+
35+
4. Apply the generated IDMS (ImageDigestMirrorSet) / ICSP (ImageContentSourcePolicy)
36+
manifests to your cluster. These remap image references from upstream
37+
registries to your internal mirror:
38+
39+
```bash
40+
oc apply -f oc-mirror-workspace/results-*/
41+
```
42+
43+
5. Install the operator using the mirrored catalog as the source.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
kind: ImageSetConfiguration
2+
apiVersion: mirror.openshift.io/v1alpha2
3+
storageConfig:
4+
registry:
5+
# URL of your internal registry where oc-mirror will store its metadata
6+
# and push the mirrored images.
7+
imageURL: <your-registry>/mirror/oc-mirror-metadata
8+
skipTLS: false
9+
mirror:
10+
operators:
11+
- # Red Hat's official OLM catalog index for OCP 4.17.
12+
# oc-mirror will automatically mirror the catalog index, the operator
13+
# bundle, and all images listed as relatedImages in the bundle.
14+
catalog: registry.redhat.io/redhat/redhat-operator-index:v4.17
15+
packages:
16+
- name: trustee-operator
17+
channels:
18+
- name: stable
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
kind: ImageSetConfiguration
2+
apiVersion: mirror.openshift.io/v1alpha2
3+
storageConfig:
4+
registry:
5+
# URL of your internal registry where oc-mirror will store its metadata
6+
# and push the mirrored images.
7+
imageURL: <your-registry>/mirror/oc-mirror-metadata
8+
skipTLS: false
9+
mirror:
10+
operators:
11+
- # Red Hat's official OLM catalog index for OCP 4.18.
12+
# oc-mirror will automatically mirror the catalog index, the operator
13+
# bundle, and all images listed as relatedImages in the bundle.
14+
catalog: registry.redhat.io/redhat/redhat-operator-index:v4.18
15+
packages:
16+
- name: trustee-operator
17+
channels:
18+
- name: stable
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
kind: ImageSetConfiguration
2+
apiVersion: mirror.openshift.io/v1alpha2
3+
storageConfig:
4+
registry:
5+
# URL of your internal registry where oc-mirror will store its metadata
6+
# and push the mirrored images.
7+
imageURL: <your-registry>/mirror/oc-mirror-metadata
8+
skipTLS: false
9+
mirror:
10+
operators:
11+
- # Red Hat's official OLM catalog index for OCP 4.19.
12+
# oc-mirror will automatically mirror the catalog index, the operator
13+
# bundle, and all images listed as relatedImages in the bundle.
14+
catalog: registry.redhat.io/redhat/redhat-operator-index:v4.19
15+
packages:
16+
- name: trustee-operator
17+
channels:
18+
- name: stable
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
kind: ImageSetConfiguration
2+
apiVersion: mirror.openshift.io/v1alpha2
3+
storageConfig:
4+
registry:
5+
# URL of your internal registry where oc-mirror will store its metadata
6+
# and push the mirrored images.
7+
imageURL: <your-registry>/mirror/oc-mirror-metadata
8+
skipTLS: false
9+
mirror:
10+
operators:
11+
- # Red Hat's official OLM catalog index for OCP 4.20.
12+
# oc-mirror will automatically mirror the catalog index, the operator
13+
# bundle, and all images listed as relatedImages in the bundle.
14+
catalog: registry.redhat.io/redhat/redhat-operator-index:v4.20
15+
packages:
16+
- name: trustee-operator
17+
channels:
18+
- name: stable
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
kind: ImageSetConfiguration
2+
apiVersion: mirror.openshift.io/v1alpha2
3+
storageConfig:
4+
registry:
5+
# URL of your internal registry where oc-mirror will store its metadata
6+
# and push the mirrored images.
7+
imageURL: <your-registry>/mirror/oc-mirror-metadata
8+
skipTLS: false
9+
mirror:
10+
operators:
11+
- # Red Hat's official OLM catalog index for OCP 4.21.
12+
# oc-mirror will automatically mirror the catalog index, the operator
13+
# bundle, and all images listed as relatedImages in the bundle.
14+
catalog: registry.redhat.io/redhat/redhat-operator-index:v4.21
15+
packages:
16+
- name: trustee-operator
17+
channels:
18+
- name: stable

0 commit comments

Comments
 (0)