Skip to content

Instantly share code, notes, and snippets.

View yokawasa's full-sized avatar
:octocat:
debugging

Yoichi Kawasaki yokawasa

:octocat:
debugging
View GitHub Profile
@yokawasa
yokawasa / docker-cheat-sheet.md
Last active December 20, 2022 02:58
Docker Cheat Sheet

Images manipulation

Build an image

docker build <OPTIONS> <PATH|URL|->

# you can omit "." if a relevant Dockerfile is in the current dir "."
docker build -t <name>
docker build -t :
@yokawasa
yokawasa / describe-dyamodb-stream.go
Last active May 30, 2022 14:57
Go SDK sample for DynamoDB Stream
package main
// ref
// https://github.com/urakozz/go-dynamodb-stream-subscriber
// https://github.com/aws/aws-sdk-go-v2
/*
aws cli for dynamodb stream info
# Get the full ARN for DynamoDB Streams
@yokawasa
yokawasa / slack-tips.md
Last active April 14, 2022 07:01
Slack tips

GitHub + Slack Integration

# run the following command at the slack channel where you want to integrate with GitHub 
/github subscribe owner/repo [feature]
/github unsubscribe owner/repo [feature]

# if you want to unsubscribe commits, deployments
/github unsubscribe owner/repo commits
/github unsubscribe owner/repo deployments
@yokawasa
yokawasa / github-issue-pr-template.md
Last active May 31, 2022 20:28
GitHub issue / pull request template tipcs
  • New issue template configuration options
    • .github/ISSUE_TEMPLATE/config.yaml
    • blank_issues_enabled: option allows you to show or hide the Create a blank issue choice when users select New issue in your repository.
    • contact_links: You can also refer users to another url during the template selection process by specifying contact_links in the configuration file.
@yokawasa
yokawasa / alb-ingress-90-10.yaml
Last active May 31, 2022 20:26
Sample manifests introduced in the presentation for IstioCon2022 - Accelerating ZOZOTOWN modernization with Istio https://events.istio.io/istiocon-2022/sessions/accelerating-zozotown-modernization/
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: zozo-api-gateway-ingresss
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/actions.forward-external-traffic: |
{
@yokawasa
yokawasa / kuberbuilder-project-gatling-operator.md
Last active November 29, 2022 13:51
Getting started Kuberbuilder Project - Gatling Operator version

Getting started kubebuilder project (Gatling Operator)

Create PROJECT file

domain: yokawasa.github.io
layout:
- go.kubebuilder.io/v3
projectName: gatling-operator
repo: github.com/yokawasa/gatling-operator
@yokawasa
yokawasa / httpecho.yaml
Created March 29, 2022 03:09
HTTP Echo Server Kuberentes Manifest
## Docker Container's from
## https://code.mendhak.com/docker-http-https-echo/
apiVersion: v1
kind: ServiceAccount
metadata:
name: httpecho
---
apiVersion: v1
kind: Service
metadata:
@yokawasa
yokawasa / mizu-test.md
Last active May 31, 2022 20:30
Mizu testing sandbox

Mizu = the API Traffic Viewer for kubernetes

Download on mac

curl -Lo mizu \
https://github.com/up9inc/mizu/releases/latest/download/mizu_darwin_amd64 \
&& chmod 755 mizu

Run local

@yokawasa
yokawasa / pod-lifecycle-test.yaml
Created March 21, 2022 01:21
Kubernetes Pod Lifecycle Test manifest
# source from https://cloud.redhat.com/blog/kubernetes-pods-life
kind: Deployment
apiVersion: apps/v1
metadata:
name: loap
spec:
replicas: 1
selector:
matchLabels:
app: loap