Update the command/args:
command: [ "/bin/sh", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
Run a command
kubectl exec my-pod -c my-container -- ls /
NAME TITLE | |
abusiveexperiencereport.googleapis.com Abusive Experience Report API | |
acceleratedmobilepageurl.googleapis.com Accelerated Mobile Pages (AMP) URL API | |
accessapproval.googleapis.com Access Approval API | |
accesscontextmanager.googleapis.com Access Context Manager API | |
actions.googleapis.com Actions API | |
adexchangebuyer-json.googleapis.com Ad Exchange Buyer API | |
adexchangebuyer.googleapis.com Ad Exchange Buyer API II | |
adexchangeseller.googleapis.com Ad Exchange Seller API | |
adexperiencereport.googleapis.com Ad Experience Report API |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: mypod | |
spec: | |
containers: | |
- name: mycontainer | |
image: myimage | |
resources: | |
limits: |
Update the command/args:
command: [ "/bin/sh", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
Run a command
kubectl exec my-pod -c my-container -- ls /
################################################## | |
## A makefile for doing common things with kubectl | |
################################################## | |
ifndef K8S_PROJECT_NAME | |
$(error K8S_PROJECT_NAME is not set. Please set this to your k8s project namein YOUR Makefile) | |
endif | |
UNAME_S := $(shell uname -s) | |
STAGING_NAMESPACE = staging-${K8S_PROJECT_NAME} |
variable "gpu" { | |
description = "Enable and configure node GPUs" | |
type = object({ | |
type = string | |
count = number | |
}) | |
default = null | |
# or... |
- id: deny-todos | |
name: Denies TODOs or FIXME | |
description: 'Denies TODOs or FIXME in commits' | |
entry: run.sh | |
language: script |
defmodule Name do | |
@adjectives ~w( | |
autumn hidden bitter misty silent empty dry dark summer | |
icy delicate quiet white cool spring winter patient | |
twilight dawn crimson wispy weathered blue billowing | |
broken cold damp falling frosty green long late lingering | |
bold little morning muddy old red rough still small | |
sparkling throbbing shy wandering withered wild black | |
young holy solitary fragrant aged snowy proud floral | |
restless divine polished ancient purple lively nameless |
# use ImageMagick convert | |
# the order is important. the density argument applies to input.pdf and resize and rotate to output.pdf | |
convert -density 90 input.pdf -rotate 0.5 -attenuate 0.2 +noise Multiplicative -colorspace Gray output.pdf |
provider "aws" { | |
region = "us-west-2" | |
profile = "md-sandbox" | |
} | |
resource "aws_s3_bucket" "dont_create_me_in_same_script_obvi" { | |
bucket = "terraform-provisioning-cache" | |
acl = "private" | |
} |
defmodule Kratos do | |
defmodule Behaviour do | |
@moduledoc """ | |
Defines function signature for secrets adapters | |
""" | |
@callback who_am_i(String.t()) :: {:ok, map()} | {:error, :unauthenticated} | |
end | |
@behaviour Kratos.Behaviour |