-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
292 additions
and
106 deletions.
There are no files selected for viewing
This file contains 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 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 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
kubectl create configmap authorized-keys-configmap \ | ||
NAMESPACE="$1" | ||
if [[ -z $1 ]]; then | ||
NAMESPACE=default | ||
fi | ||
echo Installing in namespace $NAMESPACE | ||
kubectl -n $NAMESPACE create configmap authorized-keys-configmap \ | ||
"--from-literal=authorized_keys=$(cat ~/.ssh/*.pub)" --dry-run=client -o yaml | \ | ||
kubectl apply -f - | ||
kubectl -n $NAMESPACE apply -f - |
This file contains 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,4 @@ | ||
apiVersion: v2 | ||
name: rooknfs | ||
version: 0.0.1 | ||
description: A packaged installation of Rook NFS for Kubernetes. |
This file contains 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,3 @@ | ||
# RookNFS Helm Chart | ||
|
||
See `values.yaml` for available config options. |
File renamed without changes.
This file contains 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,50 @@ | ||
# NOTE: The cleanup jobs defined here are required to ensure that things which | ||
# Rook NFS is responsible for cleaning up are deleted before deleting the Rook | ||
# pods which do the actual clean up of NFS resources. For example, the RWM PVC | ||
# must be deleted before the Rook StorageClass and provisioner pod. However, | ||
# the PVC cannot be deleted until the pods which are using it are deleted, so | ||
# the various Slurm node pods must actually be the first resources deleted. | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: rook-nfs-cleanup | ||
--- | ||
# TODO: Create a job-specific ClusterRole for the ServiceAccount | ||
# instead of using the cluster-admin role here | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: rook-nfs-cleanup | ||
subjects: | ||
- kind: ServiceAccount | ||
name: rook-nfs-cleanup | ||
namespace: {{ .Release.Namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: cluster-admin | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: rook-nfs-pre-delete-cleanup | ||
annotations: | ||
"helm.sh/hook": pre-delete | ||
"helm.sh/hook-delete-policy": hook-succeeded | ||
"helm.sh/hook-weight": "10" | ||
spec: | ||
template: | ||
metadata: | ||
name: rook-nfs-pre-delete-cleanup | ||
spec: | ||
serviceAccountName: rook-nfs-cleanup | ||
containers: | ||
- name: tester | ||
image: bitnami/kubectl | ||
command: | ||
- "bin/bash" | ||
- "-c" | ||
- | | ||
kubectl delete -n {{ .Values.serverNamespace }} nfsservers {{ .Values.serverName }} --wait | ||
restartPolicy: Never | ||
--- |
This file contains 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 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 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 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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
--- | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
labels: | ||
app: rook-nfs | ||
name: rook-nfs-share1 | ||
name: {{ .Values.storageClassName }} | ||
parameters: | ||
exportName: share1 | ||
nfsServerName: rook-nfs | ||
nfsServerNamespace: rook-nfs | ||
exportName: {{ .Values.shareName }} | ||
nfsServerName: {{ .Values.serverName }} | ||
nfsServerNamespace: {{ .Values.serverNamespace }} | ||
provisioner: nfs.rook.io/rook-nfs-provisioner | ||
reclaimPolicy: Delete | ||
volumeBindingMode: Immediate | ||
--- |
Oops, something went wrong.