eksctl create cluster -f eks-demo-cluster-001.yaml
eksctl delete cluster eks-demo-cluster-001 --region us-east-1
gh api \ | |
--method POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
-f 'state=success' \ | |
-f 'target_url=https://github.com/google/cadvisor/pull/3527/checks' \ | |
-f 'description=Skipped this stale build!' \ | |
-f 'context=test-integration (1.22, ubuntu-20.04, build/config/plain.sh)' \ | |
/repos/google/cadvisor/statuses/2b6f92b40593f935ca19306af5c3aee3c00ac61d |
#!/usr/bin/env bash | |
# Copyright 2019 The Kubernetes Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
#!/bin/bash | |
# All the notes you need!!! | |
# https://github.com/awslabs/amazon-eks-ami/releases/tag/v20240227 | |
# AMI Name: amazon-eks-gpu-node-1.29-v20240227 | |
# https://docs.aws.amazon.com/eks/latest/userguide/eks-optimized-ami.html | |
# https://docs.aws.amazon.com/dlami/latest/devguide/gpu.html | |
# https://hub.docker.com/r/nvidia/cuda/tags | |
# https://github.com/NVIDIA/k8s-device-plugin/releases |
# DO NOT TRY THIS ON A MAC or WSL2 :) use a ubuntu vm or something! | |
# Run the same kubekins container used in the CI job | |
IMAGE=gcr.io/k8s-staging-test-infra/kubekins-e2e:v20240209-82001bc8c5-main | |
# Create a temp directory for the DIND docker - see the baked in assumption in some of our images here - https://cs.k8s.io/?q=docker-graph&i=nope&files=&excludeFiles=&repos=kubernetes/test-infra | |
(sudo mkdir -p /tmp/docker-graph && sudo chmod -R 777 /tmp/docker-graph && cd /tmp/docker-graph && rm -rf *) | |
# Run as a privileged container, mount both the kubernetes directory and the docker-graph directory | |
docker run -e DOCKER_IN_DOCKER_ENABLED=true \ |
initialize-nginx-image.sh
to push nginx:latest
into an ECR repository and build the soci
index (see here for details)fuse
using sudo yum install fuse -y
sudo chown root:root /usr/local/bin/soci-snapshotter-grpc
sudo systemctl enable --now soci-snapshotter
sudo yum install -y amazon-ecr-credential-helper
(or install from latest release in repo)sudo chown root:root /root/.docker/config.json
#!/bin/bash | |
############################################################## | |
set -x | |
aws s3 ls || exit 1 | |
#export S3_BUCKET=provider-aws-test-infra-dims-west-2 | |
export S3_BUCKET=provider-aws-test-infra-dims-east-1 |
# Run from $HOME/go/src/sigs.k8s.io/provider-aws-test-infra | |
FOCUS="should get a host IP" \ | |
USER=ec2-user \ | |
CLEANUP=false \ | |
DELETE_INSTANCES=false \ | |
IMAGE_CONFIG_DIR=config \ | |
IMAGE_CONFIG_FILE=aws-instance-eks.yaml \ | |
TARGET_BUILD_ARCH="linux/amd64" \ | |
USE_DOCKERIZED_BUILD=true \ |
gh search prs --state open --label "needs-rebase" --label "do-not-merge/work-in-progress" --sort updated --limit 100 --repo "kubernetes/kubernetes" > prs.txt | |
cat prs.txt | awk '{print $2}' | xargs -L 1 gh pr comment --repo "kubernetes/kubernetes" --body "This work-in-progress PR needs a rebase. please rebase if this PR is still needed for the upcoming release." | |
gh search prs --state open --label "needs-rebase" --sort updated --limit 300 --repo "kubernetes/kubernetes" > prs.txt | |
cat prs.txt | awk '{print $2}' | xargs -L 1 -I {} gh pr view https://github.com/kubernetes/kubernetes/pull/{} --json number,mergeable | jq '"\(.number) \(.mergeable)"' -r |