npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testscdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template
各環境に合わせてインストールを行ってください。
> node --version
v14.15.1
https://kubernetes.io/docs/tasks/tools/install-kubectl/
各環境に合わせてインストールを行ってください。
> kubectl version
Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"darwin/amd64"}
npm clean-install
npm run cdk bootstrap
npm run cdk deploy
https://www.gremlin.com/docs/infrastructure-layer/installation/
mkdir -p gremlin-manifests/
curl -o gremlin-manifests/gremlin-conf.yaml -L https://k8s.gremlin.com/resources/gremlin-conf.yaml
vim gremlin-manifests/gremlin-conf.yaml
GREMLIN_TEAM_ID
, GREMLIN_CLUSTER_ID
を入力し
GREMLIN_TEAM_SECRET
は削除してください。
右上のメニュー > Team Settings > Configuration > Download
- Certificates.zip を解凍します
*.pub_cert.pem
からgremlin.cert
に名前を変更します*.priv_key.pem
からgremlin.key
に名前を変更します
- cdk の outputs
ClusterConfigCommand*
のコマンドを入力します
kubectl create namespace gremlin
kubectl -n gremlin create secret generic gremlin-team-cert --from-file=gremlin.cert --from-file=gremlin.key
kubectl apply -f manifests
下記のコマンドで確認できます。
kubectl get deployments -n gremlin
kubectl get daemonset -n gremlin
mkdir -p microservices-manifests/
curl -o microservices-manifests/microservices-manifests.yaml -L https://raw.githubusercontent.com/GoogleCloudPlatform/microservices-demo/master/release/kubernetes-manifests.yaml
kubectl create namespace demo
kubectl apply -n demo -f microservices-manifests
下記のコマンドで接続先を確認できます。
kubectl get svc -n demo
kubectl delete -n demo -f microservices-manifests
kubectl delete -n gremlin -f gremlin-manifests
npm run cdk destroy