A Kubernetes DynamoDB operator
482
A kubernetes controller for creating/deleting dynamodb tables based on the side8/k8s-operator
Available on Docker hub
$ export VERSION="0.1.0"
$ docker build . --tag "microdc/k8s-dynamodb-controller:${VERSION}" --tag "microdc/k8s-dynamodb-controller:latest"
operator.yaml is a good reference example.To create a table using the example yaml config follow these steps.
test-table yaml config:kubectl apply -f example/Table.yaml
kubectl get dynamodb test-table -o json | jq '.status'
kubectl describe configmap dynamodb-test-table
...
env:
- name: TEST_TABLE
valueFrom:
configMapKeyRef:
name: dynamodb-test-table
key: TableName
$ kubectl edit dynamodb test-table
...
spec:
...
AttributeDefinitions:
...
- AttributeName: active
AttributeType: "N"
$ kubectl delete dynamodb test-table
Requires: shellcheck and yamllint Tests run at container build. test.sh can bes used for local command line testing.
Content type
Image
Digest
Size
311.6 MB
Last updated
over 8 years ago
docker pull microdc/k8s-dynamodb-operator:dev-feature_future-side8-operator