Slide 9
Slide 9 text
アプリケーションの設定
dynamodbclient.yaml
➜ docker build -t dynamodbclient .
➜ docker save dynamodbclient:latest > dynamodbclient.tar
➜ docker cp dynamodbclient.tar dev-cluster-eks-a-cluster-control-plane:/
➜ docker exec -it dev-cluster-eks-a-cluster-control-plane bash
bash-4.2# ctr -n k8s.io images import dynamodbclient.tar
bash-4.2# exit
➜ k create secret tls dynamodb-secret --cert=dynamodbclient.crt --key=dynamodbclient.key
➜ k apply –f dynamodbclient.yaml
kind: Pod
spec:
containers:
- image: dynamodbclient:latest
imagePullPolicy: Never
name: dynamodbclient
command: ["/bin/bash", "-c", "/dynamodbclient >> /log/dynamodbclient.log"]
volumeMounts:
- name: secret-volume
mountPath: /secret-volume
volumes:
- name: secret-volume
secret:
secretName: dynamodb-secret
Dockerイメージをcontrol planeにロードし、ローカルイメージを用いるPodを作成