Compare commits
No commits in common. "master" and "v0.37.4" have entirely different histories.
15 changed files with 12 additions and 72 deletions
48
.github/workflows/pages.yml
vendored
48
.github/workflows/pages.yml
vendored
|
@ -1,48 +0,0 @@
|
||||||
name: Publish Helm chart
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
||||||
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
||||||
concurrency:
|
|
||||||
group: "pages"
|
|
||||||
cancel-in-progress: false
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
|
|
||||||
environment:
|
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Setup Pages
|
|
||||||
uses: actions/configure-pages@v3
|
|
||||||
|
|
||||||
- name: Publish Helm chart
|
|
||||||
uses: stefanprodan/helm-gh-pages@0ad2bb377311d61ac04ad9eb6f252fb68e207260 # v1.7.0
|
|
||||||
with:
|
|
||||||
# GitHub automatically creates a GITHUB_TOKEN secret to use in your workflow. You can use the GITHUB_TOKEN to authenticate in a workflow run.
|
|
||||||
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
branch: github-pages
|
|
||||||
charts_dir: deploy/helm
|
|
||||||
target_dir: charts
|
|
||||||
linting: off
|
|
|
@ -11,7 +11,7 @@ FROM alpine:3.17
|
||||||
LABEL maintainers="Vitaliy Filippov <vitalif@yourcmc.ru>"
|
LABEL maintainers="Vitaliy Filippov <vitalif@yourcmc.ru>"
|
||||||
LABEL description="csi-s3 slim image"
|
LABEL description="csi-s3 slim image"
|
||||||
|
|
||||||
RUN apk add --no-cache fuse mailcap rclone
|
RUN apk add --no-cache fuse rclone
|
||||||
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community s3fs-fuse
|
RUN apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community s3fs-fuse
|
||||||
|
|
||||||
ADD https://github.com/yandex-cloud/geesefs/releases/latest/download/geesefs-linux-amd64 /usr/bin/geesefs
|
ADD https://github.com/yandex-cloud/geesefs/releases/latest/download/geesefs-linux-amd64 /usr/bin/geesefs
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -17,7 +17,7 @@ REGISTRY_NAME=cr.yandex/crp9ftr22d26age3hulg
|
||||||
REGISTRY_NAME2=cr.il.nebius.cloud/crll7us9n6i5j3v4n92m
|
REGISTRY_NAME2=cr.il.nebius.cloud/crll7us9n6i5j3v4n92m
|
||||||
IMAGE_NAME=csi-s3
|
IMAGE_NAME=csi-s3
|
||||||
IMAGE_NAME2=yandex-cloud/csi-s3/csi-s3-driver
|
IMAGE_NAME2=yandex-cloud/csi-s3/csi-s3-driver
|
||||||
VERSION ?= 0.38.3
|
VERSION ?= 0.37.4
|
||||||
IMAGE_TAG=$(REGISTRY_NAME)/$(IMAGE_NAME):$(VERSION)
|
IMAGE_TAG=$(REGISTRY_NAME)/$(IMAGE_NAME):$(VERSION)
|
||||||
TEST_IMAGE_TAG=$(IMAGE_NAME):test
|
TEST_IMAGE_TAG=$(IMAGE_NAME):test
|
||||||
|
|
||||||
|
|
20
README.md
20
README.md
|
@ -10,19 +10,7 @@ This is a Container Storage Interface ([CSI](https://github.com/container-storag
|
||||||
* Kubernetes has to allow privileged containers
|
* Kubernetes has to allow privileged containers
|
||||||
* Docker daemon must allow shared mounts (systemd flag `MountFlags=shared`)
|
* Docker daemon must allow shared mounts (systemd flag `MountFlags=shared`)
|
||||||
|
|
||||||
### Helm chart
|
### 1. Create a secret with your S3 credentials
|
||||||
|
|
||||||
Helm chart is published at `https://yandex-cloud.github.io/k8s-csi-s3`:
|
|
||||||
|
|
||||||
```
|
|
||||||
helm repo add yandex-s3 https://yandex-cloud.github.io/k8s-csi-s3/charts
|
|
||||||
|
|
||||||
helm install csi-s3 yandex-s3/csi-s3
|
|
||||||
```
|
|
||||||
|
|
||||||
### Manual installation
|
|
||||||
|
|
||||||
#### 1. Create a secret with your S3 credentials
|
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
|
@ -42,7 +30,7 @@ stringData:
|
||||||
|
|
||||||
The region can be empty if you are using some other S3 compatible storage.
|
The region can be empty if you are using some other S3 compatible storage.
|
||||||
|
|
||||||
#### 2. Deploy the driver
|
### 2. Deploy the driver
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd deploy/kubernetes
|
cd deploy/kubernetes
|
||||||
|
@ -59,13 +47,13 @@ wget https://raw.githubusercontent.com/yandex-cloud/k8s-csi-s3/v0.35.5/deploy/ku
|
||||||
kubectl delete -f attacher.yaml
|
kubectl delete -f attacher.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 3. Create the storage class
|
### 3. Create the storage class
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
kubectl create -f examples/storageclass.yaml
|
kubectl create -f examples/storageclass.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 4. Test the S3 driver
|
### 4. Test the S3 driver
|
||||||
|
|
||||||
1. Create a pvc using the new storage class:
|
1. Create a pvc using the new storage class:
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
appVersion: 0.38.3
|
appVersion: 0.37.4
|
||||||
description: "Container Storage Interface (CSI) driver for S3 volumes"
|
description: "Container Storage Interface (CSI) driver for S3 volumes"
|
||||||
name: csi-s3
|
name: csi-s3
|
||||||
version: 0.38.3
|
version: 0.37.4
|
||||||
keywords:
|
keywords:
|
||||||
- s3
|
- s3
|
||||||
home: https://github.com/yandex-cloud/k8s-csi-s3
|
home: https://github.com/yandex-cloud/k8s-csi-s3
|
|
@ -1,6 +1,6 @@
|
||||||
helm_chart:
|
helm_chart:
|
||||||
name: cr.yandex/crp9ftr22d26age3hulg/yandex-cloud/csi-s3/csi-s3
|
name: cr.yandex/crp9ftr22d26age3hulg/yandex-cloud/csi-s3/csi-s3
|
||||||
tag: 0.38.3
|
tag: 0.37.4
|
||||||
requirements:
|
requirements:
|
||||||
k8s_version: ">=1.13"
|
k8s_version: ">=1.13"
|
||||||
images:
|
images:
|
|
@ -5,7 +5,7 @@ images:
|
||||||
# Source: quay.io/k8scsi/csi-provisioner:v2.1.0
|
# Source: quay.io/k8scsi/csi-provisioner:v2.1.0
|
||||||
provisioner: cr.yandex/crp9ftr22d26age3hulg/yandex-cloud/csi-s3/csi-provisioner:v2.1.0
|
provisioner: cr.yandex/crp9ftr22d26age3hulg/yandex-cloud/csi-s3/csi-provisioner:v2.1.0
|
||||||
# Main image
|
# Main image
|
||||||
csi: cr.yandex/crp9ftr22d26age3hulg/yandex-cloud/csi-s3/csi-s3-driver:0.38.3
|
csi: cr.yandex/crp9ftr22d26age3hulg/yandex-cloud/csi-s3/csi-s3-driver:0.37.4
|
||||||
|
|
||||||
storageClass:
|
storageClass:
|
||||||
# Specifies whether the storage class should be created
|
# Specifies whether the storage class should be created
|
|
@ -70,7 +70,7 @@ spec:
|
||||||
capabilities:
|
capabilities:
|
||||||
add: ["SYS_ADMIN"]
|
add: ["SYS_ADMIN"]
|
||||||
allowPrivilegeEscalation: true
|
allowPrivilegeEscalation: true
|
||||||
image: cr.yandex/crp9ftr22d26age3hulg/csi-s3:0.38.3
|
image: cr.yandex/crp9ftr22d26age3hulg/csi-s3:0.37.4
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
args:
|
args:
|
||||||
- "--endpoint=$(CSI_ENDPOINT)"
|
- "--endpoint=$(CSI_ENDPOINT)"
|
||||||
|
|
|
@ -88,7 +88,7 @@ spec:
|
||||||
- name: socket-dir
|
- name: socket-dir
|
||||||
mountPath: /var/lib/kubelet/plugins/ru.yandex.s3.csi
|
mountPath: /var/lib/kubelet/plugins/ru.yandex.s3.csi
|
||||||
- name: csi-s3
|
- name: csi-s3
|
||||||
image: cr.yandex/crp9ftr22d26age3hulg/csi-s3:0.38.3
|
image: cr.yandex/crp9ftr22d26age3hulg/csi-s3:0.37.4
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
args:
|
args:
|
||||||
- "--endpoint=$(CSI_ENDPOINT)"
|
- "--endpoint=$(CSI_ENDPOINT)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue