-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for sec=krb5 mounting
When mounting with kerberos security, ticket cache is expected to be set up on the host, pointing to the /var/lib/kubelet/kubernetes/krb5cc_${uid}. Credential cache is then taken from the creds secret and written to the file, that is available to the host for using.
- Loading branch information
Showing
5 changed files
with
321 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: smb-krb5 | ||
provisioner: smb.csi.k8s.io | ||
parameters: | ||
# On Windows, "*.default.svc.cluster.local" could not be recognized by csi-proxy | ||
source: "//smb-server.default.svc.cluster.local/share" | ||
# if csi.storage.k8s.io/provisioner-secret is provided, will create a sub directory | ||
# with PV name under source | ||
csi.storage.k8s.io/provisioner-secret-name: "smbcreds-krb5" | ||
csi.storage.k8s.io/provisioner-secret-namespace: "default" | ||
csi.storage.k8s.io/node-stage-secret-name: "smbcreds-krb5" | ||
csi.storage.k8s.io/node-stage-secret-namespace: "default" | ||
volumeBindingMode: Immediate | ||
mountOptions: | ||
- sec=krb5 | ||
- cruid=1000 | ||
- seal | ||
- vers=3.0 | ||
- nosuid | ||
- noexec | ||
- dir_mode=0777 | ||
- file_mode=0777 | ||
- uid=1001 | ||
- gid=1001 | ||
- noperm | ||
- mfsymlinks | ||
- cache=strict | ||
- noserverino # required to prevent data corruption |
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