Skip to content

Instantly share code, notes, and snippets.

@kobutton
Created July 10, 2024 12:51
Show Gist options
  • Save kobutton/1d18186b0f2a0469e3151eb007804ac8 to your computer and use it in GitHub Desktop.
Save kobutton/1d18186b0f2a0469e3151eb007804ac8 to your computer and use it in GitHub Desktop.
Disconnected Agent Config for HCP
---
apiVersion: metal3.io/v1alpha1
kind: Provisioning
metadata:
name: provisioning-configuration
spec:
preProvisioningOSDownloadURLS: {}
provisioningNetwork: Disabled
watchAllNamespaces: true
---
apiVersion: v1
kind: ConfigMap
metadata:
name: agent-disconnected-config
namespace: multicluster-engine
labels:
agent-install.openshift.io/watch: 'true'
app: assisted-service
data:
ca-bundle.crt: "" #TODO: ADD CA BUNDLE PEM HERE
registries.conf: #TODO: THIS is the contents of a registries.conf file not an ICSP(or w/e the new format is called).
---
apiVersion: agent-install.config.openshift.io/v1beta1
kind: AgentServiceConfig
metadata:
name: agent
spec:
databaseStorage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
filesystemStorage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
imageStorage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
mirrorRegistryRef:
name: agent-disconnected-config
osImages:
- cpuArchitecture: x86_64
openshiftVersion: <openshift version(example 4.15.12) #TODO: REPLACE
rootFSUrl: ''
url: <URL TO COREOS LIVE ISO> #TODO REPLACE
version: <VERSION OF COREOS(example 415.92.202402130021-0)> #TODO: REPLACE
---
kind: Namespace
apiVersion: v1
metadata:
name: infraenvs
---
apiVersion: agent-install.openshift.io/v1beta1
kind: InfraEnv
metadata:
annotations:
infraenv.agent-install.openshift.io/enable-ironic-agent: 'false'
name: baremetal-nodes
namespace: infraenvs
labels:
agentclusterinstalls.extensions.hive.openshift.io/location: <location> #TODO: REPLACE LOCATION
networkType: static #THIS MEANS EVEYTHING NEEDS NMSTATECONFIG
spec:
cpuArchitecture: x86_64
agentLabels:
agentclusterinstalls.extensions.hive.openshift.io/location: <location> #TODO: REPLACE LOCATION add others as needed
ipxeScriptType: DiscoveryImageAlways
nmStateConfigLabelSelector:
matchLabels:
infraenvs.agent-install.openshift.io: baremetal-nodes
pullSecretRef:
name: baremetal-nodes-pullsecret #TODO: NEED TO CREATE THIS SECRET IN THE INFRAENVS NAMESPACE
sshAuthorizedKey: "" #TODO: PUBLIC KEY HERE
additionalNTPSource:
- ntp.example.com #TODO: REPLACE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment