Tests connectivity from a container to a SQL DB.
1.8K
This container was built as a Windows .Net App to allow you to test SQL database connectivity and basic query latency from a container. It's easy to use, all you need to supply is the following:
note: if you choose to not add this as an arg the container will query only once and complete./Container.DBTester.exe YOU_CONNECTION_STRING TABLE_TO_QUERY ROW_COUNT_TO_RETRN YES_OR_EMPTY
Keep in mind you DO need a Windows Node to use this. Notice the nodeSelector at the bottom of the YAML, you can change that to match whatever your label may be.
If you want to use a yaml and say deploy to Kubernetes you can visit my github repo for the code used to recreate this.
apiVersion: v1
kind: Pod
metadata:
name: dbtester
labels:
app: dbtester
spec:
containers:
- name: dbtester
image: d3athbymonkey/container_db_tester:latest
imagePullPolicy: Always
command: ["Container.DBTester.exe"]
args: ["your connection string", "your table", "amount of rows", "yes for contious, nothing for single"]
nodeSelector:
kubernetes.io/os: windows
Content type
Image
Digest
Size
127.2 MB
Last updated
about 6 years ago
docker pull d3athbymonkey/container_db_tester