OpenShift Hive v1.1.x — Latest updates & new features

---
apiVersion: operators.coreos.com/v1alpha2
kind: OperatorGroup
metadata:
name: operatorgroup
namespace: hive
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: hive
namespace: hive
spec:
channel: alpha
name: hive-operator
source: operatorhubio-catalog
sourceNamespace: olm
---
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: hive
namespace: hive
spec:
channel: alpha
name: hive-operator
installPlanApproval: Manual
source: operatorhubio-catalog
sourceNamespace: olm
$ k get installplan
NAME CSV APPROVAL APPROVED
install-9drmh hive-operator.v1.1.0 Manual false
...
spec:
approval: Manual
approved: true
clusterServiceVersionNames:
- hive-operator.v1.1.0
generation: 1
...
---
apiVersion: hive.openshift.io/v1
kind: HiveConfig
metadata:
name: hive
spec:
logLevel: info
targetNamespace: hive
deleteProtection: enabled
backup:
velero:
enabled: true
namespace: velero
$ k get backups -n velero
NAME AGE
backup-okd-2021-03-26t11-57-32z 3h12m
backup-okd-2021-03-26t12-00-32z 3h9m
backup-okd-2021-03-26t12-35-44z 154m
backup-okd-2021-03-26t12-38-44z 151m
...
$ k delete cd okd --wait=0
The ClusterDeployment "okd" is invalid: metadata.annotations.hive.openshift.io/protected-delete: Invalid value: "true": cannot delete while annotation is present
$ k get clustersync okd -o yaml
apiVersion: hiveinternal.openshift.io/v1alpha1
kind: ClusterSync
metadata:
name: okd
namespace: okd
spec: {}
status:
conditions:
- lastProbeTime: "2021-03-26T16:13:57Z"
lastTransitionTime: "2021-03-26T16:13:57Z"
message: All SyncSets and SelectorSyncSets have been applied to the cluster
reason: Success
status: "False"
type: Failed
firstSuccessTime: "2021-03-26T16:13:57Z"
...
---
apiVersion: hive.openshift.io/v1
kind: HiveConfig
metadata:
name: hive
spec:
logLevel: info
targetNamespace: hive
deleteProtection: enabled
backup:
velero:
enabled: true
namespace: velero
controllersConfig:
controllers:
- config:
concurrentReconciles: 10
replicas: 3
name: clustersync
$ kubectl patch cd okd --type='merge' -p $'spec:\n powerState: Hibernating'
$ kubectl get cd
NAME PLATFORM REGION CLUSTERTYPE INSTALLED INFRAID VERSION POWERSTATE AGE
okd aws eu-west-1 true
$ kubectl get cd
NAME PLATFORM REGION CLUSTERTYPE INSTALLED INFRAID VERSION POWERSTATE AGE
okd aws eu-west-1 true
$ kubectl patch cd okd --type='merge' -p $'spec:\n powerState: Running'
$ kubectl get cd
NAME PLATFORM REGION CLUSTERTYPE INSTALLED INFRAID VERSION POWERSTATE AGE
okd aws eu-west-1 true
$ k get cd
NAME PLATFORM REGION CLUSTERTYPE INSTALLED INFRAID VERSION POWERSTATE AGE
okd aws eu-west-1 true
apiVersion: hive.openshift.io/v1
kind: ClusterPool
metadata:
name: okd-eu-west-1
namespace: hive
spec:
baseDomain: okd.domain.com
imageSetRef:
name: okd-4.7-imageset
installConfigSecretTemplateRef:
name: install-config
skipMachinePools: true
platform:
aws:
credentialsSecretRef:
name: aws-creds
region: eu-west-1
pullSecretRef:
name: pull-secret
size: 3
apiVersion: hive.openshift.io/v1
kind: ClusterClaim
metadata:
name: okd-claim
namespace: hive
spec:
clusterPoolName: okd-eu-west-1
lifetime: 8h
$ kubectl create secret generic new-hive-cluster-kubeconfig -n hive --from-file=kubeconfig=./new-hive-cluster.kubeconfig
apiVersion: hive.openshift.io/v1
kind: ClusterRelocate
metadata:
name: migrate
spec:
kubeconfigSecretRef:
namespace: hive
name: new-hive-cluster-kubeconfig
clusterDeploymentSelector:
matchLabels:
migrate: cluster
$ kubectl label clusterdeployment okd migrate=cluster
$ kubectl patch cd okd --type='merge' -p $'spec:\n preserveOnDelete: true'

--

--

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