OpenShift Hive — Deploy Single Node (All-in-One) OKD Cluster on AWS

---
apiVersion: v1
baseDomain: k8s.domain.com
compute:
- name: worker
platform:
aws:
zones:
- eu-west-1a
rootVolume:
iops: 100
size: 22
type: gp2
type: r4.xlarge
replicas: 0
controlPlane:
name: master
platform:
aws:
zones:
- eu-west-1a
rootVolume:
iops: 100
size: 22
type: gp2
type: r5.2xlarge
replicas: 1
metadata:
creationTimestamp: null
name: okd-aio
networking:
clusterNetwork:
- cidr: 10.128.0.0/14
hostPrefix: 23
machineCIDR: 10.0.0.0/16
networkType: OpenShiftSDN
serviceNetwork:
- 172.30.0.0/16
platform:
aws:
region: eu-west-1
pullSecret: ""
sshKey: ""
kubectl create secret generic install-config-aio -n okd --from-file=install-config.yaml=./install-config-aio.yaml
---
apiVersion: hive.openshift.io/v1
kind: ClusterDeployment
metadata:
creationTimestamp: null
annotations:
hive.openshift.io/delete-after: "2h"
name: okd-aio
namespace: okd
spec:
baseDomain: k8s.domain.com
clusterName: okd-aio
controlPlaneConfig:
servingCertificates: {}
installed: false
platform:
aws:
credentialsSecretRef:
name: aws-creds
region: eu-west-1
provisioning:
releaseImage: quay.io/openshift/okd:4.5.0-0.okd-2020-07-14-153706-ga
installConfigSecretRef:
name: install-config-aio
pullSecretRef:
name: pull-secret
sshKey:
name: ssh-key
status:
clusterVersionStatus:
availableUpdates: null
desired:
force: false
image: ""
version: ""
observedGeneration: 0
versionHash: ""
kubectl apply -f  ./clusterdeployment-aio.yaml

--

--

Highly versatile Senior technical Lead Engineer, I am a consummate and competent qualified IT Professional specialising in distributed systems

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store