-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fine-tune for ubuntu 24.04 on hpc
- Loading branch information
Showing
18 changed files
with
328 additions
and
45 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 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,33 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2022 Ho Kim ([email protected]). All rights reserved. | ||
# Use of this source code is governed by a GPL-3-style license that can be | ||
# found in the LICENSE file. | ||
|
||
# Prehibit errors | ||
set -e -o pipefail | ||
# Verbose | ||
set -x | ||
|
||
########################################################### | ||
# Install DirectPV # | ||
########################################################### | ||
|
||
echo "- Installing DirectPV ... " | ||
|
||
kubectl krew install directpv | ||
|
||
kubectl directpv install --node-selector node-role.kubernetes.io/kiss=Storage | ||
|
||
########################################################### | ||
# Provision DirectPV Drives # | ||
########################################################### | ||
|
||
echo "- Provisioning DirectPV Drives ... " | ||
|
||
DRIVES_FILE="/tmp/drives.yaml" | ||
kubectl directpv discover --output-file "${DRIVES_FILE}" | ||
kubectl directpv init "${DRIVES_FILE}" --dangerous | ||
rm -f "${DRIVES_FILE}" | ||
|
||
# Finished! | ||
echo "Installed!" |
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,44 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2022 Ho Kim ([email protected]). All rights reserved. | ||
# Use of this source code is governed by a GPL-3-style license that can be | ||
# found in the LICENSE file. | ||
|
||
# Prehibit errors | ||
set -e -o pipefail | ||
# Verbose | ||
set -x | ||
|
||
########################################################### | ||
# Configuration # | ||
########################################################### | ||
|
||
# Configure default environment variables | ||
HELM_CHART_DEFAULT="https://operator.min.io" | ||
NAMESPACE_DEFAULT="minio-operator" | ||
|
||
# Set environment variables | ||
HELM_CHART="${HELM_CHART:-$HELM_CHART_DEFAULT}" | ||
NAMESPACE="${NAMESPACE:-$NAMESPACE_DEFAULT}" | ||
|
||
########################################################### | ||
# Configure Helm Channel # | ||
########################################################### | ||
|
||
echo "- Configuring Helm channel ... " | ||
|
||
helm repo add "${NAMESPACE}" "${HELM_CHART}" | ||
|
||
########################################################### | ||
# Install Operator # | ||
########################################################### | ||
|
||
echo "- Installing Operator ... " | ||
|
||
helm upgrade --install "minio-operator" \ | ||
"${NAMESPACE}/minio-operator" \ | ||
--create-namespace \ | ||
--namespace "${NAMESPACE}" \ | ||
--values "./values-operator.yaml" | ||
|
||
# Finished! | ||
echo "Installed!" |
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,26 @@ | ||
--- | ||
# Root key for Operator Helm Chart | ||
operator: | ||
### | ||
# | ||
# The `affinity <https://kubernetes.io/docs/tasks/configure-pod-container/assign-pods-nodes-using-node-affinity/>`__ or anti-affinity settings to apply to Operator pods. | ||
# | ||
# These settings determine the distribution of pods across worker nodes and can help prevent or allow colocating pods onto the same worker nodes. | ||
affinity: | ||
nodeAffinity: | ||
preferredDuringSchedulingIgnoredDuringExecution: | ||
- weight: 1 | ||
preference: | ||
matchExpressions: | ||
- key: node-role.kubernetes.io/kiss | ||
operator: In | ||
values: | ||
- Compute | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: node-role.kubernetes.io/kiss | ||
operator: In | ||
values: | ||
- Compute | ||
- ControlPlane |
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,37 @@ | ||
--- | ||
apiVersion: ceph.rook.io/v1 | ||
kind: CephBlockPool | ||
metadata: | ||
name: ceph-blockpool-noreplicas | ||
namespace: csi-rook-ceph | ||
spec: | ||
erasureCoded: | ||
codingChunks: 0 | ||
dataChunks: 0 | ||
failureDomain: host | ||
replicated: | ||
requireSafeReplicaSize: false | ||
size: 1 | ||
--- | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: ceph-block-noreplicas | ||
annotations: | ||
storageclass.kubernetes.io/is-default-class: "false" | ||
allowVolumeExpansion: true | ||
provisioner: csi-rook-ceph.rbd.csi.ceph.com | ||
reclaimPolicy: Delete | ||
volumeBindingMode: Immediate | ||
parameters: | ||
clusterID: csi-rook-ceph | ||
csi.storage.k8s.io/controller-expand-secret-name: rook-csi-rbd-provisioner | ||
csi.storage.k8s.io/controller-expand-secret-namespace: csi-rook-ceph | ||
csi.storage.k8s.io/fstype: ext4 | ||
csi.storage.k8s.io/node-stage-secret-name: rook-csi-rbd-node | ||
csi.storage.k8s.io/node-stage-secret-namespace: csi-rook-ceph | ||
csi.storage.k8s.io/provisioner-secret-name: rook-csi-rbd-provisioner | ||
csi.storage.k8s.io/provisioner-secret-namespace: csi-rook-ceph | ||
imageFeatures: layering | ||
imageFormat: "2" | ||
pool: ceph-blockpool-noreplicas |
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
Oops, something went wrong.