enxebre / hypershift-ops

HyperShift team operational code and configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Creating a HyperShift CI cluster

Prerequisites

Update the hypershift manifest

hypershift install render \
  --oidc-storage-provider-s3-bucket-name hypershift-ci-1-oidc \
  --oidc-storage-provider-s3-region us-east-1 \
  --oidc-storage-provider-s3-secret oidc-s3-creds \
  --hypershift-image hypershift-operator:latest > clusters/hypershift-ci-1/manifests/hypershift-operator.yaml

make kustomize

Install

Install HyperShift:

install.sh --cluster $CLUSTER --aws-creds $AWS_CREDS

After initial installation or as part of a credentials rotation, create a kubeconfig from the admin SA token which can be injected into CI jobs:

oc serviceaccounts --namespace hypershift-ops create-kubeconfig admin > /tmp/$CLUSTER.kubeconfig

Store the kubeconfig in Vault under the clusters directory in a secret named $CLUSTER with the following schema:

{
  "hypershift-ops-admin.kubeconfig": "<kubeconfig contents>",
  "secretsync/target-name": "$CLUSTER",
  "secretsync/target-namespace": "test-credentials"
}

Uninstall

To uninstall everything and start over, run:

uninstall.sh

About

HyperShift team operational code and configuration

License:Apache License 2.0


Languages

Language:Shell 94.8%Language:Makefile 5.2%