Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| #!/usr/bin/env bash | |
| set -Eeu | |
| set -x | |
| # You need to use a session ticket (https://about.sourcegraph.com/handbook/support/p4-enablement#generate-a-session-ticket) | |
| # in order to avoid password prompts | |
| # TO edit this file, you must run `p4 edit create-revision.sh` first |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| run: cpu-hungry | |
| name: cpu-hungry | |
| spec: | |
| containers: | |
| - image: ubuntu |
| #!/usr/bin/env bash | |
| set -e | |
| # Ensure required tools are installed | |
| if ! command -v glab &> /dev/null; then | |
| echo "Error: glab CLI is not installed. Please install it before running this script." | |
| exit 1 | |
| fi | |
| if ! command -v jq &> /dev/null; then |
| kubectl get roles,clusterroles -o json | jq -c ' | |
| .items[] | |
| | select(.rules != null) # Exclude entries with null rules | |
| | select(.rules[].resources[] == "secrets") # Only resources with "secrets" access | |
| | {name: .metadata.name, kind: .kind, namespace: .metadata.namespace, verbs: (.rules[].verbs | unique)}' \ | |
| | jq -s 'unique_by(.name, .kind, .namespace)' # Deduplicate based on name, kind, and namespace |
| # Change cpu/memory if required | |
| cpus: 8 | |
| memory: "16GiB" | |
| images: | |
| - location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-amd64.img" | |
| arch: "x86_64" | |
| - location: "https://cloud-images.ubuntu.com/releases/22.04/release/ubuntu-22.04-server-cloudimg-arm64.img" | |
| arch: "aarch64" |