Skip to content

Instantly share code, notes, and snippets.

@rwsu
Created March 17, 2022 16:26
Show Gist options
  • Save rwsu/ac65441b27fc0fe1961768db49a91262 to your computer and use it in GitHub Desktop.
Save rwsu/ac65441b27fc0fe1961768db49a91262 to your computer and use it in GitHub Desktop.
agent installer demo2 manifests
apiVersion: extensions.hive.openshift.io/v1beta1
kind: AgentClusterInstall
metadata:
name: test-agent-cluster-install
namespace: cluster0
spec:
apiVIP: 192.168.122.10
ingressVIP: 192.168.122.11
clusterDeploymentRef:
name: compact-cluster
imageSetRef:
name: openshift-v4.10.0
networking:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
serviceNetwork:
- 172.30.0.0/16
provisionRequirements:
controlPlaneAgents: 3
sshPublicKey: 'replace-with-your-ssh-public-key'
apiVersion: hive.openshift.io/v1
kind: ClusterDeployment
metadata:
name: compact-cluster
namespace: cluster0
spec:
baseDomain: agent.example.com
clusterInstallRef:
group: extensions.hive.openshift.io
kind: AgentClusterInstall
name: test-agent-cluster-install
version: v1beta1
clusterName: compact-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: cluster0
spec:
clusterRef:
name: compact-cluster
namespace: cluster0
pullSecretRef:
name: pull-secret
#proxy:
#httpProxy: http://11.11.11.33
#httpsProxy: http://22.22.22.55
sshAuthorizedKey: 'replace-with-your-ssh-public-key'
ignitionConfigOverride: '{"ignition": {"version": "3.1.0"}, "storage": {"files": [{"path": "/etc/someconfig", "contents": {"source": "data:text/plain;base64,aGVscGltdHJhcHBlZGluYXN3YWdnZXJzcGVj"}}]}}'
nmStateConfigLabelSelector:
matchLabels:
cluster0-nmstate-label-name: cluster0-nmstate-label-value
apiVersion: v1
kind: Secret
type: kubernetes.io/dockerconfigjson
metadata:
name: pull-secret
namespace: cluster0
stringData:
.dockerconfigjson: 'replace-with-your-pull-secret-string'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment