Skip to content

Instantly share code, notes, and snippets.

@michaelgugino
Last active October 2, 2018 20:30
Show Gist options
  • Select an option

  • Save michaelgugino/8b4bbab8f77cb842802f24b14828b11e to your computer and use it in GitHub Desktop.

Select an option

Save michaelgugino/8b4bbab8f77cb842802f24b14828b11e to your computer and use it in GitHub Desktop.
Compare input and output
apiVersion: v1
data:
install-config: |
admin:
email: myemail@myhost.com
password: somesupergoodpasswordgoeshere
sshKey: |
ssh-rsa < public key>
baseDomain: tt2.testing
clusterID: c3b78518-d102-4b64-b84f-c9e2fd34480a
machines:
- name: master
platform: {}
replicas: 1
- name: worker
platform: {}
replicas: 1
metadata:
creationTimestamp: null
name: test2
networking:
podCIDR: 10.2.0.0/16
serviceCIDR: 10.3.0.0/16
type: flannel
platform:
libvirt:
URI: qemu+tcp://192.168.124.1/system
defaultMachinePlatform:
image: http://aos-ostree.rhev-ci-vms.eng.rdu2.redhat.com/rhcos/images/cloud/latest/rhcos-qemu.qcow2.gz
masterIPs: null
network:
if: tt0
ipRange: 192.168.124.0/24
name: test2
pullSecret: |
{
"auths": {
"quay.io": {
"auth": "redacted",
"email": ""
}
}
}
kco-config: |
apiVersion: v1
authConfig:
oidc_client_id: tectonic-kubectl
oidc_groups_claim: groups
oidc_issuer_url: https://test2.tt2.testing/identity
oidc_username_claim: email
cloudProviderConfig:
cloud_config_path: ""
cloud_provider_profile: ""
clusterConfig:
apiserver_url: https://test2-api.tt2.testing:6443
dnsConfig:
clusterIP: 10.3.0.10
kind: KubeCoreOperatorConfig
networkConfig:
advertise_address: 0.0.0.0
cluster_cidr: 10.2.0.0/16
etcd_servers: https://test2-etcd-0.tt2.testing:2379
service_cidr: 10.3.0.0/16
routingConfig:
subdomain: test2.tt2.testing
mao-config: |
apiServiceCA: |
-----BEGIN CERTIFICATE-----
MIIDMzCCAhugAwIBAgIIeEjt8nxEydswDQYJKoZIhvcNAQELBQAwJjESMBAGA1UE
CxMJb3BlbnNoaWZ0MRAwDgYDVQQDEwdyb290LWNhM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:
clusterName: test2
iprange: 192.168.124.0/24
networkName: test2
replicas: 1
uri: qemu+tcp://192.168.124.1/system
openstack: null
provider: libvirt
targetNamespace: openshift-cluster-api
network-config: |
apiVersion: v1
calicoConfig:
mtu: "1450"
kind: TectonicNetworkOperatorConfig
networkProfile: flannel
podCIDR: 10.2.0.0/16
kind: ConfigMap
metadata:
name: cluster-config-v1
namespace: kube-system
admin:
email: myemail@myhost.com
password: somesupergoodpasswordgoeshere
sshKey: |
ssh-rsa < public key>
baseDomain: tt2.testing
clusterID: 2faaa14e-197f-480f-8275-e9f5df53b6db
machines: {}
metadata:
creationTimestamp: null
name: test2
networking:
podCIDR: 10.2.0.0/16
serviceCIDR: 10.3.0.0/16
type: flannel
platform:
libvirt:
URI: qemu+tcp://192.168.124.1/system
defaultMachinePlatform:
image: file:///home/username/images/rhcos-qemu.qcow2
masterIPs: null
network:
if: tt2
ipRange: 192.168.126.0/24
name: test2
pullSecret: |
{
"auths": {
"quay.io": {
"auth": "redacted",
"email": ""
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment