Created
March 10, 2022 17:10
-
-
Save dtantsur/34826e8a338c8818cc1edd9e5ca45c3d to your computer and use it in GitHub Desktop.
InfraEnv for testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: hive.openshift.io/v1 | |
kind: ClusterImageSet | |
metadata: | |
name: openshift-v4.9.0 | |
spec: | |
releaseImage: quay.io/openshift-release-dev/ocp-release:4.9.9-x86_64 | |
--- | |
apiVersion: extensions.hive.openshift.io/v1beta1 | |
kind: AgentClusterInstall | |
metadata: | |
name: test-agent-cluster-install | |
namespace: spook-cluster | |
spec: | |
clusterDeploymentRef: | |
name: single-node | |
imageSetRef: | |
name: openshift-v4.9.0 | |
networking: | |
clusterNetwork: | |
- cidr: 10.128.0.0/14 | |
hostPrefix: 23 | |
machineNetwork: | |
- cidr: 192.168.111.0/24 | |
serviceNetwork: | |
- 172.30.0.0/16 | |
provisionRequirements: | |
controlPlaneAgents: 1 | |
sshPublicKey: '<INSERT YOUR SSH KEY>' | |
--- | |
apiVersion: v1 | |
kind: Secret | |
type: kubernetes.io/dockerconfigjson | |
metadata: | |
name: pull-secret | |
namespace: spook-cluster | |
data: | |
.dockerconfigjson: '<COPY YOUR PULL SECRET FROM openshift-config AS BASE64>' | |
--- | |
apiVersion: hive.openshift.io/v1 | |
kind: ClusterDeployment | |
metadata: | |
name: single-node | |
namespace: spook-cluster | |
spec: | |
baseDomain: hive.example.com | |
clusterInstallRef: | |
group: extensions.hive.openshift.io | |
kind: AgentClusterInstall | |
name: test-agent-cluster-install | |
version: v1beta1 | |
clusterName: test-cluster | |
controlPlaneConfig: | |
servingCertificates: {} | |
platform: | |
agentBareMetal: | |
agentSelector: | |
matchLabels: | |
bla: aaa | |
pullSecretRef: | |
name: pull-secret | |
--- | |
apiVersion: agent-install.openshift.io/v1beta1 | |
kind: InfraEnv | |
metadata: | |
name: myinfraenv | |
namespace: spook-cluster | |
spec: | |
clusterRef: | |
name: single-node | |
namespace: spook-cluster | |
pullSecretRef: | |
name: pull-secret | |
sshAuthorizedKey: '<INSERT YOUR SSH KEY>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment