#k8s
kubectl get
kubectl create
kubectl describe
#See cluster set
| kind: Pod | |
| apiVersion: v1 | |
| metadata: | |
| name: baseline-pod | |
| spec: | |
| containers: | |
| - name: default | |
| image: k8s.gcr.io/pause:3.2 |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/coreos/go-oidc/v3/oidc" | |
| ) | |
| type ( |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "strings" | |
| "time" |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "strings" | |
| "github.com/google/go-github/v32/github" | |
| "golang.org/x/oauth2" | |
| ) |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/google/go-github/v32/github" | |
| "golang.org/x/oauth2" | |
| ) |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "net/url" | |
| ) |
#k8s
kubectl get
kubectl create
kubectl describe
#See cluster set
| // traceID returns random traceID in uuid format. | |
| func traceID() string { | |
| traceID := uuid.NewV4() | |
| hi, low := binary.LittleEndian.Uint64(traceID[:8]), binary.LittleEndian.Uint64(traceID[8:]) | |
| return fmt.Sprintf("%016x%016x", hi, low) | |
| } |
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048
# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)| workflow "Demo workflow" { | |
| on = "push" | |
| resolves = ["SNS Notification"] | |
| } | |
| action "Build Image" { | |
| uses = "actions/docker/cli@c08a5fc9e0286844156fefff2c141072048141f6" | |
| runs = ["/bin/sh", "-c", "docker build -t $IMAGE_URI ."] | |
| env = { | |
| IMAGE_URI = "xxxxxxxx.dkr.ecr.ap-northeast-1.amazonaws.com/github-action-demo:latest" |