mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-08-20 12:06:23 +00:00
17 lines
281 B
Python
17 lines
281 B
Python
import time
|
|
import etcd3
|
|
|
|
# Connect to the etcd3 cluster
|
|
client = etcd3.client()
|
|
|
|
# Continuously set and delete keys
|
|
while True:
|
|
# Set a key
|
|
client.put("/stress-test-key", "stress test value")
|
|
|
|
# Delete the key
|
|
client.delete("/stress-test-key")
|
|
|
|
time.sleep(1)
|
|
|