Skip to content

Instantly share code, notes, and snippets.

Shingo Omura everpeace

Block or report user

Report or block everpeace

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@everpeace
everpeace / Why People Want Microservices.md
Last active May 4, 2019
マイクロサービス化が進む背景について考えてみた
View Why People Want Microservices.md

マイクロサービス化が進む背景について考えてみた

最近マイクロサービスって流行ってますよね。バズってると言ってもいいくらい。

個人的には、「マイクロサービスって結局何なの?」とか、「SOAと何が違うわけ?」とかいう議論は苦手です。

でも「なんでみんなマイクロサービスで作りたいのか?なんでマイクロサービスで作られるサービスが多いのか?」にはすごく興味があるんです。

僕は今、シリコンバレーにある日系SIerの小さな子会社で駐在員をやっていますが、このエリアに居ると、とにかく最近、

「サービス全体が、独立した小さなサービスの集合で構成されるようになってきている」

@everpeace
everpeace / pod.yaml
Created May 11, 2017
test workload for GPU schedule with nodeAffinity
View pod.yaml
kind: Pod
apiVersion: v1
metadata:
name: gpu-pod
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
@everpeace
everpeace / docker-compose.yml
Last active Oct 21, 2019
kafka cluster in docker-compose.
View docker-compose.yml
# WARNING: This docker-compose.yml is only for testing purpose.
# Parameters:
# - name: CONFLUENT_PLATFORM_VERSION
# default: 3.0.0
# reference: https://hub.docker.com/u/confluentinc/
# Ports:
# - description: Major ports are exposed to host computer
# - zookeeper: 2181
# kafka1: 9091
# kafka2: 9092
View keybase.md

Keybase proof

I hereby claim:

  • I am everpeace on github.
  • I am everpeace (https://keybase.io/everpeace) on keybase.
  • I have a public key ASAZY_STqf0Okff7CYzVSc9aRUuyXKv_asok9FZBwBlIbQo

To claim this, I am signing this object:

View gist:35ec86a9a67ada8c889d3d76a8180033
$ scala
Welcome to Scala 2.12.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_152).
Type in expressions for evaluation. Or try :help.
scala> trait Foo {}
defined trait Foo
# actually I wanted to write like this. But it doesn't compile
# trait Bar {
# self: { val someInt: Int } with Foo =>
@everpeace
everpeace / kube-scheduler-configuration.yaml
Last active Aug 23, 2018
kube-scheduler's config file and policy config file (policy.cfg) (v1.11.1)
View kube-scheduler-configuration.yaml
# This config scheme is based on Kubernetes v.1.11.1
# ref: https://github.com/kubernetes/kubernetes/blob/v1.11.1/pkg/apis/componentconfig/v1alpha1/types.go#L75-L112
# NOTE: You can dump default config yaml by this command:
# $ docker run -v $(pwd):/host gcr.io/google_containers/hyperkube-amd64:v1.11.1 kube-scheduler --write-config-to /host/config.yaml
# TypeMeta
apiVersion: componentconfig/v1alpha1
kind: KubeSchedulerConfiguration
# SchedulerName is name of the scheduler, used to select which pods
@everpeace
everpeace / demo_script.sh
Last active Sep 26, 2018
kubeflow meetup #1 - Kubeflow Operators
View demo_script.sh
# please setup your kubernetes cluster and kubectl with admin permission (for deploying crd and operator)
# confirm ks version (0.11.0 or later)
$ ks version
# create kss app directory
$ ks init kflowmeetup
$ cd kflowmeetup
# add kubeflow ksonnet registry
$ ks registry add kubeflow github.com/kubeflow/kubeflow/tree/master/kubeflow
You can’t perform that action at this time.