Skip to content

Commit 11a4553

Browse files
committed
add a note on how to enable fetching oci artifacts using plain http
1 parent 52d458b commit 11a4553

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

docs/book/src/03_topics/02_configuration/01_air-gapped-environtment.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ Example layout for a `kubeadm` provider may look like:
8080
- `control-plane-components.yaml`
8181
- `bootstrap-components.yaml`
8282

83+
See the [plugin docs](../03_plugin/03_publish_subcommand.md) for more information on how to properly build and publish the OCI artifacts to the air-gapped registry.<br>
84+
Other tools, such as [oras](https://oras.land/docs/), behvae in a similar fashion and can also be used to build and publish the OCI artifacts.
85+
8386
To fetch provider components which are stored as an OCI artifact, you can configure `fetchConfig.oci` field to pull them directly from an OCI registry:
8487

8588
```yaml
@@ -96,8 +99,21 @@ spec:
9699
oci: "my-oci-registry.example.com/my-provider:v1.9.3"
97100
```
98101

99-
See the [plugin docs](../03_plugin/03_publish_subcommand.md) for more information on how to properly build and publish the OCI artifacts to the air-gapped registry.<br>
100-
Other tools, such as [oras](https://oras.land/docs/), behvae in a similar fashion and can also be used to build and publish the OCI artifacts.
102+
You can likewise configure `fetchConfig.oci` to use plain http rather than https if so desired. This should only be used for development purposes as it can be insecure:
103+
104+
```yaml
105+
apiVersion: operator.cluster.x-k8s.io/v1alpha2
106+
kind: InfrastructureProvider
107+
metadata:
108+
name: azure
109+
namespace: capz-system
110+
spec:
111+
version: v1.9.3
112+
configSecret:
113+
name: azure-variables
114+
fetchConfig:
115+
oci: "http://my-oci-registry.example.com/my-provider:v1.9.3"
116+
```
101117

102118
## OCI Authentication
103119

0 commit comments

Comments
 (0)