-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: cut v3.0.0 beta release #169
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,20 +3,29 @@ entries: | |
csi-driver-nfs: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to update https://github.com/kubernetes-csi/csi-driver-nfs/tree/master/deploy? Seems like having 2 different copies of the spec will lead to confusion. |
||
- apiVersion: v1 | ||
appVersion: latest | ||
created: 2021-02-05T13:28:16.728034918Z | ||
created: "2021-02-24T13:27:32.135146481Z" | ||
description: CSI NFS Driver for Kubernetes | ||
digest: aa12e668649d4f9fc979389618992c1195847feff048dab0f2413ef02fbcc837 | ||
digest: 0310b07ac757b0f26eecb6aba5beea1377189b9df4864cfdbbd6879243d511e0 | ||
name: csi-driver-nfs | ||
urls: | ||
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts/latest/csi-driver-nfs-v3.0.0.tgz | ||
version: v3.0.0 | ||
- apiVersion: v1 | ||
appVersion: v3.0.0 | ||
created: "2021-02-24T13:27:32.135892285Z" | ||
description: CSI NFS Driver for Kubernetes | ||
digest: 092ff0377bbbc6ebfba97870c1eaec557aaf62626777d8b5f8343888af2a5506 | ||
name: csi-driver-nfs | ||
urls: | ||
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts/v3.0.0/csi-driver-nfs-v3.0.0.tgz | ||
version: v3.0.0 | ||
- apiVersion: v1 | ||
appVersion: v2.0.0 | ||
created: 2021-02-05T13:28:16.728270519Z | ||
created: "2021-02-24T13:27:32.135498883Z" | ||
description: CSI NFS Driver for Kubernetes | ||
digest: f537a133eaa965f1c053ffac130f82c9b2b624e1f8bd42937c9c48818464eaac | ||
name: csi-driver-nfs | ||
urls: | ||
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts/v2.0.0/csi-driver-nfs-v2.0.0.tgz | ||
version: v2.0.0 | ||
generated: 2021-02-05T13:28:16.727677516Z | ||
generated: "2021-02-24T13:27:32.134652878Z" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
appVersion: v3.0.0 | ||
description: CSI NFS Driver for Kubernetes | ||
name: csi-driver-nfs | ||
version: v3.0.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
The CSI NFS Driver is getting deployed to your cluster. | ||
|
||
To check CSI NFS Driver pods status, please run: | ||
|
||
kubectl --namespace={{ .Release.Namespace }} get pods --selector="release={{ .Release.Name }}" --watch |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
|
||
{{/* labels for helm resources */}} | ||
{{- define "nfs.labels" -}} | ||
labels: | ||
heritage: "{{ .Release.Service }}" | ||
release: "{{ .Release.Name }}" | ||
revision: "{{ .Release.Revision }}" | ||
chart: "{{ .Chart.Name }}" | ||
chartVersion: "{{ .Chart.Version }}" | ||
{{- end -}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
--- | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: csi-nfs-controller | ||
namespace: {{ .Release.Namespace }} | ||
{{ include "nfs.labels" . | indent 2 }} | ||
spec: | ||
replicas: {{ .Values.controller.replicas }} | ||
selector: | ||
matchLabels: | ||
app: csi-nfs-controller | ||
template: | ||
metadata: | ||
{{ include "nfs.labels" . | indent 6 }} | ||
app: csi-nfs-controller | ||
spec: | ||
hostNetwork: true # controller also needs to mount nfs to create dir | ||
dnsPolicy: ClusterFirstWithHostNet | ||
serviceAccountName: csi-nfs-controller-sa | ||
nodeSelector: | ||
kubernetes.io/os: linux | ||
{{- if .Values.controller.runOnMaster}} | ||
kubernetes.io/role: master | ||
{{- end}} | ||
priorityClassName: system-cluster-critical | ||
tolerations: | ||
- key: "node-role.kubernetes.io/master" | ||
operator: "Equal" | ||
value: "true" | ||
effect: "NoSchedule" | ||
containers: | ||
- name: csi-provisioner | ||
image: "{{ .Values.image.csiProvisioner.repository }}:{{ .Values.image.csiProvisioner.tag }}" | ||
args: | ||
- "-v=2" | ||
- "--csi-address=$(ADDRESS)" | ||
- "--leader-election" | ||
env: | ||
- name: ADDRESS | ||
value: /csi/csi.sock | ||
imagePullPolicy: {{ .Values.image.csiProvisioner.pullPolicy }} | ||
volumeMounts: | ||
- mountPath: /csi | ||
name: socket-dir | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 100Mi | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi | ||
- name: liveness-probe | ||
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}" | ||
args: | ||
- --csi-address=/csi/csi.sock | ||
- --probe-timeout=3s | ||
- --health-port=29652 | ||
andyzhangx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- --v=2 | ||
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }} | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /csi | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 100Mi | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi | ||
- name: nfs | ||
image: "{{ .Values.image.nfs.repository }}:{{ .Values.image.nfs.tag }}" | ||
securityContext: | ||
privileged: true | ||
capabilities: | ||
add: ["SYS_ADMIN"] | ||
allowPrivilegeEscalation: true | ||
imagePullPolicy: {{ .Values.image.nfs.pullPolicy }} | ||
args: | ||
- "--v={{ .Values.controller.logLevel }}" | ||
- "--nodeid=$(NODE_ID)" | ||
- "--endpoint=$(CSI_ENDPOINT)" | ||
env: | ||
- name: NODE_ID | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
- name: CSI_ENDPOINT | ||
value: unix:///csi/csi.sock | ||
volumeMounts: | ||
- name: pods-mount-dir | ||
mountPath: /var/lib/kubelet/pods | ||
mountPropagation: "Bidirectional" | ||
- mountPath: /csi | ||
name: socket-dir | ||
resources: | ||
limits: | ||
cpu: 200m | ||
memory: 200Mi | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi | ||
volumes: | ||
- name: pods-mount-dir | ||
hostPath: | ||
path: /var/lib/kubelet/pods | ||
type: Directory | ||
- name: socket-dir | ||
emptyDir: {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
apiVersion: storage.k8s.io/v1beta1 | ||
andyzhangx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
kind: CSIDriver | ||
metadata: | ||
name: nfs.csi.k8s.io | ||
spec: | ||
attachRequired: false | ||
volumeLifecycleModes: | ||
- Persistent | ||
podInfoOnMount: true | ||
andyzhangx marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# This YAML file contains driver-registrar & csi driver nodeplugin API objects | ||
# that are necessary to run CSI nodeplugin for nfs | ||
kind: DaemonSet | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: csi-nfs-node | ||
namespace: {{ .Release.Namespace }} | ||
{{ include "nfs.labels" . | indent 2 }} | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: csi-nfs-node | ||
template: | ||
metadata: | ||
{{ include "nfs.labels" . | indent 6 }} | ||
app: csi-nfs-node | ||
spec: | ||
hostNetwork: true # original nfs connection would be broken without hostNetwork setting | ||
dnsPolicy: ClusterFirstWithHostNet | ||
nodeSelector: | ||
kubernetes.io/os: linux | ||
containers: | ||
- name: liveness-probe | ||
image: "{{ .Values.image.livenessProbe.repository }}:{{ .Values.image.livenessProbe.tag }}" | ||
args: | ||
- --csi-address=/csi/csi.sock | ||
- --probe-timeout=3s | ||
- --health-port=29653 | ||
andyzhangx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- --v=2 | ||
imagePullPolicy: {{ .Values.image.livenessProbe.pullPolicy }} | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /csi | ||
resources: | ||
limits: | ||
cpu: 100m | ||
memory: 100Mi | ||
requests: | ||
cpu: 10m | ||
memory: 20Mi | ||
- name: node-driver-registrar | ||
image: "{{ .Values.image.nodeDriverRegistrar.repository }}:{{ .Values.image.nodeDriverRegistrar.tag }}" | ||
lifecycle: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the latest node-driver-registrar is distroless, so this prestop hook doesn't do anything. The latest version does have a sigterm handler to cleanup the registration socket. |
||
preStop: | ||
exec: | ||
command: ["/bin/sh", "-c", "rm -rf /registration/csi-nfsplugin /registration/csi-nfsplugin-reg.sock"] | ||
args: | ||
- --v=2 | ||
- --csi-address=/csi/csi.sock | ||
- --kubelet-registration-path=/var/lib/kubelet/plugins/csi-nfsplugin/csi.sock | ||
env: | ||
- name: KUBE_NODE_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
imagePullPolicy: {{ .Values.image.nodeDriverRegistrar.pullPolicy }} | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /csi | ||
- name: registration-dir | ||
mountPath: /registration | ||
- name: nfs | ||
securityContext: | ||
privileged: true | ||
capabilities: | ||
add: ["SYS_ADMIN"] | ||
allowPrivilegeEscalation: true | ||
image: "{{ .Values.image.nfs.repository }}:{{ .Values.image.nfs.tag }}" | ||
args : | ||
- "--v={{ .Values.node.logLevel }}" | ||
- "--nodeid=$(NODE_ID)" | ||
- "--endpoint=$(CSI_ENDPOINT)" | ||
env: | ||
- name: NODE_ID | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
- name: CSI_ENDPOINT | ||
value: unix:///csi/csi.sock | ||
imagePullPolicy: {{ .Values.image.nfs.pullPolicy }} | ||
volumeMounts: | ||
- name: socket-dir | ||
mountPath: /csi | ||
- name: pods-mount-dir | ||
mountPath: /var/lib/kubelet/pods | ||
mountPropagation: "Bidirectional" | ||
volumes: | ||
- name: socket-dir | ||
hostPath: | ||
path: /var/lib/kubelet/plugins/csi-nfsplugin | ||
type: DirectoryOrCreate | ||
- name: pods-mount-dir | ||
hostPath: | ||
path: /var/lib/kubelet/pods | ||
type: Directory | ||
- hostPath: | ||
path: /var/lib/kubelet/plugins_registry | ||
type: Directory | ||
name: registration-dir |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{{- if .Values.serviceAccount.create -}} | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: csi-nfs-controller-sa | ||
namespace: {{ .Release.Namespace }} | ||
{{ include "nfs.labels" . | indent 2 }} | ||
--- | ||
{{- end -}} | ||
|
||
{{- if .Values.rbac.create -}} | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: nfs-external-provisioner-role | ||
{{ include "nfs.labels" . | indent 2 }} | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes"] | ||
verbs: ["get", "list", "watch", "create", "delete"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumeclaims"] | ||
verbs: ["get", "list", "watch", "update"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["storageclasses"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["events"] | ||
verbs: ["get", "list", "watch", "create", "update", "patch"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["csinodes"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["nodes"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["coordination.k8s.io"] | ||
resources: ["leases"] | ||
verbs: ["get", "list", "watch", "create", "update", "patch"] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: nfs-csi-provisioner-binding | ||
{{ include "nfs.labels" . | indent 2 }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: csi-nfs-controller-sa | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: nfs-external-provisioner-role | ||
apiGroup: rbac.authorization.k8s.io | ||
{{- end -}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the azure blob reference.