-
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.
Merging in new changes from main and rebuilding image
- Loading branch information
Showing
15 changed files
with
145 additions
and
61 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[kubernetes] | ||
name=Kubernetes | ||
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-$basearch | ||
enabled=1 | ||
gpgcheck=1 | ||
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg |
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,8 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: database-auth-secret | ||
annotations: | ||
helm.sh/hook: pre-install | ||
data: | ||
password: {{ randAlphaNum 32 | b64enc }} |
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,22 @@ | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: generate-keys-hook | ||
annotations: | ||
"helm.sh/hook": pre-install | ||
"helm.sh/hook-delete-policy": hook-succeeded | ||
"helm.sh/hook-weight": "3" | ||
spec: | ||
backoffLimit: 0 | ||
ttlSecondsAfterFinished: 0 | ||
template: | ||
metadata: | ||
name: generate-keys-hook | ||
spec: | ||
serviceAccountName: secret-generator-account | ||
restartPolicy: Never | ||
containers: | ||
- name: generate-keys-hook | ||
image: {{ .Values.slurmImage }} | ||
args: | ||
- generate-keys-hook |
9 changes: 9 additions & 0 deletions
9
slurm-cluster-chart/templates/helm-authorized-keys-configmap.yaml
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,9 @@ | ||
#Only applied if sshPublicKey provided in values.yaml, if not assumes you have run publish-keys.sh prior to helm release | ||
{{ if .Values.sshPublicKey }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: helm-authorized-keys-configmap | ||
data: | ||
authorized_keys: {{ .Values.sshPublicKey }} | ||
{{ end }} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: munge-key-secret | ||
annotations: | ||
helm.sh/hook: pre-install | ||
data: | ||
munge.key: {{ randAscii 128 | b64enc }} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: secret-generator-role | ||
annotations: | ||
"helm.sh/hook": pre-install | ||
"helm.sh/hook-weight": "1" | ||
rules: | ||
- apiGroups: [""] # "" indicates the core API group | ||
resources: ["secrets"] | ||
verbs: ["get","apply","create", "patch"] | ||
|
||
--- | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: secret-generator-rolebinding | ||
annotations: | ||
"helm.sh/hook": pre-install | ||
"helm.sh/hook-weight": "2" | ||
subjects: | ||
- kind: ServiceAccount | ||
name: secret-generator-account | ||
roleRef: | ||
kind: Role | ||
name: secret-generator-role | ||
apiGroup: rbac.authorization.k8s.io |
11 changes: 11 additions & 0 deletions
11
slurm-cluster-chart/templates/secret-generator-serviceaccount.yaml
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,11 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: secret-generator-account | ||
annotations: | ||
"kubernetes.io/enforce-mountable-secrets": "true" | ||
"helm.sh/hook": pre-install | ||
"helm.sh/hook-weight": "0" | ||
automountServiceAccountToken: True | ||
secrets: | ||
- name: host-keys-secret |
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