1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-22 06:02:51 +00:00

This patch splits openshift-uninstall from the openshift-provision directory

Changes include:
  - moves and modifies readme file from openshift-provision
    to openshift-uninstall
  - moves examples directory from openshift-provision
  - changes the yaml filename to match the resource name

Issue: #386

Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
This commit is contained in:
PuneetPunamiya 2020-07-07 12:41:16 +05:30 committed by tekton-robot
parent 1f1c3fde41
commit d2dfcc98b1
7 changed files with 2 additions and 44 deletions

View File

@ -7,55 +7,13 @@ The following task helps you to provision the Openshift cluster using the Instal
Guide to provision a cluster on AWS can be found [here](https://docs.openshift.com/container-platform/4.3/installing/installing_aws/installing-aws-customizations.html) and for GCP can be found [here](https://docs.openshift.com/container-platform/4.3/installing/installing_gcp/installing-gcp-customizations.html)
## `OpenShift-Create`
The following task is used to create the cluster.
### **Install the Task**
```
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/openshift-provision/openshift-cluster-create.yaml
```
### **Parameters**
- **PLATFORM**: The cloud platform where you want to create your openshift cluster (accepted values are `aws` and `gcp`).
- **BASE_DOMAIN**: The base domain of the cloud provider.
- **CLUSTER_NAME**: The desired name of the cluster.
- **REPLICAS**: Required replicas for the cluster.
- **REGION**: The region to deploy your cluster in.
- **PROJECT_ID**: The project id is required in case of deploying at google cloud platform (`gcp`).
- **OPENSHIFT_INSTALLER_IMAGE**: OpenShift installer base image for UPI installation (_default_: quay.io/openshift/origin-upi-installer:4.4)
### **Workspaces**
- **secrets**: A workspace that consists of credentials required by the cloud provider as a service account which needs to be mounted to their default path as required by the cluster.
- **install-dir**: The `PersistentVolume` workspace which will contain all the files generated by the `openshift-install` which later can be used at the time of destroying the cluster.
### **Secrets**
- The pull secret is obtained from the Pull Secret page on the Red Hat OpenShift Cluster Manager [site](https://cloud.redhat.com/openshift/install) by selecting the appropriate `Infrastructure Cloud Provider` and installation type as `Installer-provisioned infrastructure`. You can use this pull secret to authenticate with the services that are provided by the included authorities.
- The public ssh key used for password-less authentication. The public ssh key can be generated by:
```
ssh-keygen -y -f ~/.ssh/openshift-dev.pem > ~/.ssh/openshift-dev.pub
```
or
```
ssh-keygen -t rsa -b 4096 -C "<email id>"
```
and then the public key can be obtained by
```
cat ~/.ssh/openshift-dev.pub
```
## `OpenShift-Destroy`
### **Install the Task**
```
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/openshift-provision/openshift-cluster-destroy.yaml
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/task/openshift-uninstall/0.1/openshift-uninstall.yaml
```
### **Workspaces**
@ -152,7 +110,7 @@ spec:
**_NOTE_**
- To access the cluster created in other tasks we need to use the same `Workspace` and keep the `workingDir: $(workspaces.workspaces-name.path)` and to login into the cluster in the next Tekton Task do the following :-
- To access the cluster created in other tasks we need to use the same `Workspace` and keep the `workingDir: $(workspaces.workspaces-name.path)` and to login into the cluster in the next Tekton Task do the following :-
```
export KUBECONFIG=auth/kubeconfig
```