This repository was archived by the owner on Dec 6, 2024. It is now read-only.
generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 28
cosi deployment docs #18
Merged
k8s-ci-robot
merged 1 commit into
kubernetes-retired:master
from
tparikh:cosi-api-docs-crds
Feb 3, 2021
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
--- | ||
title: Deploying Container Object Storage Interface (COSI) On Kubernetes | ||
--- | ||
# Deploying Container Object Storage Interface (COSI) On Kubernetes | ||
|
||
This document describes steps for Kubernetes administrators to setup Container Object Storage Interface (COSI) onto a Kubernetes cluster. | ||
## Overview | ||
|
||
Following components that need to be deployed in Kubernetes to setup COSI. | ||
|
||
- CustomResourceDefinitions (CRDs) | ||
- Controller | ||
- Driver | ||
- Sidecar for the driver | ||
- Node Adapter | ||
|
||
### Quick Start | ||
|
||
Execute following commands to setup COSI: | ||
|
||
```sh | ||
# Install CRDs | ||
kubectl create -k github.com/kubernetes-sigs/container-object-storage-interface-api | ||
|
||
# Install controller | ||
kubectl create -k github.com/kubernetes-sigs/container-object-storage-interface-controller | ||
|
||
# Sample Provisioner and Sidecar | ||
kubectl create -k github.com/kubernetes-sigs/container-object-storage-interface-provisioner-sidecar | ||
|
||
# Node Adapter | ||
kubectl create -k github.com/kubernetes-sigs/container-object-storage-interface-csi-adapter | ||
``` | ||
|
||
### CustomResourceDefinitions | ||
|
||
COSI acts on following custom resource definitions (CRDs): | ||
|
||
- `BucketRequest` - Represents a request to provision a Bucket | ||
- `BucketClass` - Represents a class of Buckets with similar characteristics | ||
- `Bucket` - Represents a Bucket or its equivalent in the storage backend | ||
- `BucketAccessRequest` - Represents a request to access a Bucket | ||
- `BucketAccessClass` - Represents a class of accessors with similar access requirements | ||
- `BucketAccess` - Represents a access token or service account in the storage backend | ||
|
||
All [COSI custom resource definitions](../crds) can be installed using [kustomization file](../kustomization.yaml) and `kubectl` with following command: | ||
|
||
```sh | ||
kubectl create -k github.com/kubernetes-sigs/container-object-storage-interface-api | ||
``` | ||
|
||
### Controller | ||
|
||
COSI controller can be setup using the [kustomization file](https://github.com/kubernetes-sigs/container-object-storage-interface-controller/blob/master/kustomization.yaml) from the [container-object-storage-interface-controller](https://github.com/kubernetes-sigs/container-object-storage-interface-controller) repository with following command: | ||
|
||
```sh | ||
kubectl create -k github.com/kubernetes-sigs/container-object-storage-interface-controller | ||
``` | ||
|
||
The controller will be deployed in the `default` namespace. | ||
|
||
### Sample Driver & Sidecar | ||
|
||
Sample Driver & Sidecar can be setup using the [kustomization file](https://github.com/kubernetes-sigs/container-object-storage-interface-provisioner-sidecar/blob/master/kustomization.yaml) from the [container-object-storage-interface-provisioner-sidecar](https://github.com/kubernetes-sigs/container-object-storage-interface-provisioner-sidecar) repository with following command: | ||
|
||
```sh | ||
kubectl create -k github.com/kubernetes-sigs/container-object-storage-interface-provisioner-sidecar | ||
``` | ||
### Node Adapter | ||
|
||
Node adapter can be setup using the [kustomization file](https://github.com/kubernetes-sigs/container-object-storage-interface-csi-adapter/blob/master/kustomization.yaml) from the [container-object-storage-interface-csi-adapter](https://github.com/kubernetes-sigs/container-object-storage-interface-csi-adapter) repository with following command: | ||
|
||
```sh | ||
kubectl create -k github.com/kubernetes-sigs/container-object-storage-interface-csi-adapter | ||
``` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.