-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
48 changed files
with
473 additions
and
1,235 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#shellcheck disable=SC2148,SC2155 | ||
export KUBECONFIG="$(PWD)/kubernetes/kubeconfig" | ||
export SOPS_AGE_KEY_FILE="$(PWD)/age.key" | ||
export TALOSCONFIG="$(PWD)/talos/clusterconfig/talosconfig" | ||
export MINIJINJA_CONFIG_FILE="$(expand_path ./.minijinja.toml)" | ||
export KUBECONFIG="$(expand_path ./kubernetes/kubeconfig)" | ||
export SOPS_AGE_KEY_FILE="$(expand_path ./age.key)" | ||
export TALOSCONFIG="$(expand_path ./talos/clusterconfig/talosconfig)" | ||
export TASK_X_MAP_VARIABLES=0 |
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,5 @@ | ||
autoescape = "none" | ||
newline = true | ||
trim-blocks = true | ||
lstrip-blocks = true | ||
env = true |
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: &app wipe-rook | ||
namespace: default | ||
labels: | ||
app.kubernetes.io/name: *app | ||
spec: | ||
parallelism: {{ ENV.NODE_COUNT }} | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: *app | ||
spec: | ||
restartPolicy: Never | ||
initContainers: | ||
- name: data | ||
image: docker.io/library/alpine:latest | ||
command: ["/bin/sh", "-c"] | ||
args: ["rm -rf /mnt/host_var/lib/rook"] | ||
volumeMounts: | ||
- mountPath: /mnt/host_var | ||
name: host-var | ||
securityContext: | ||
privileged: true | ||
resources: {} | ||
containers: | ||
- name: disk | ||
image: docker.io/library/alpine:latest | ||
command: ["/bin/sh", "-c"] | ||
args: | ||
- | | ||
apk add --no-cache findutils nvme-cli; | ||
DISK=$(find /dev/disk/by-id/ -iname "*{{ ENV.MODEL }}*" -not -name "*-part[0-9+]"); | ||
echo "=== Wiping $DISK ==="; | ||
nvme format --lbaf=1 $DISK --force; | ||
nvme format --block-size=4096 $DISK --force; | ||
securityContext: | ||
privileged: true | ||
volumeMounts: | ||
- name: host-dev | ||
mountPath: /dev/disk/by-id | ||
resources: {} | ||
volumes: | ||
- name: host-var | ||
hostPath: | ||
path: /var | ||
- name: host-dev | ||
hostPath: | ||
path: /dev/disk/by-id | ||
type: Directory | ||
topologySpreadConstraints: | ||
- maxSkew: 1 | ||
labelSelector: | ||
matchLabels: | ||
app.kubernetes.io/name: *app | ||
topologyKey: kubernetes.io/hostname | ||
whenUnsatisfiable: DoNotSchedule |
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.