Skip to content

Instantly share code, notes, and snippets.

@csrwng
Created July 13, 2021 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csrwng/3d2e28d9eea22aa5c4ea29f1a10f682b to your computer and use it in GitHub Desktop.
Save csrwng/3d2e28d9eea22aa5c4ea29f1a10f682b to your computer and use it in GitHub Desktop.
Sample HostedCluster and NodePool for Hypershift
apiVersion: hypershift.openshift.io/v1alpha1
kind: HostedCluster
metadata:
name: example
spec:
autoscaling: {}
configs: {}
dns:
baseDomain: hypershift.example.com
etcd:
managementType: Managed
infraID: example-blah
issuerURL: https://kubernetes.default.svc
networking:
machineCIDR: 10.0.0.0/16
podCIDR: 10.132.0.0/14
serviceCIDR: 172.31.0.0/16
platform:
type: None
pullSecret:
name: example-pull-secret
release:
image: quay.io/openshift-release-dev/ocp-release:4.8.0-x86_64
services:
- service: APIServer
servicePublishingStrategy:
type: LoadBalancer
- service: OAuthServer
servicePublishingStrategy:
type: Route
- service: OIDC
servicePublishingStrategy:
type: Route
- service: Konnectivity
servicePublishingStrategy:
type: LoadBalancer
apiVersion: hypershift.openshift.io/v1alpha1
kind: NodePool
metadata:
name: example
spec:
clusterName: example
nodeCount: 0
nodePoolManagement:
autoRepair: false
maxSurge: 0
maxUnavailable: 0
platform:
type: None
release:
image: quay.io/openshift-release-dev/ocp-release:4.8.0-x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment