Version v0.0.1
The kv get data value via API consul use Authentication
- Basic Auth
- Token
- Store Data
- Parsing Base64
- Loop Update
This can be used by all realtime automation key update values from consul.
docker pull fajarhide/getconsul
apiVersion: apps/v1
kind: Deployment
metadata:
name: get-consul
spec:
replicas: 1
selector:
matchLabels:
app: get-consul
template:
metadata:
labels:
app: get-consul
spec:
containers:
- name: get-consul
image: fajarhide/getconsul
imagePullPolicy: Always
volumeMounts:
- name: env-consul
mountPath: "/app/.env"
subPath: .env
- name: shared-data
mountPath: /directory/store/data
volumes:
- name: env-consul
secret:
secretName: consul-secret
items:
- key: .env
path: .env
- name: shared-data
emptyDir: {}
secret env-consul is a .env
get-consul which is saved in kubernetes secrets and /directory/store/data
is directory location a store data from consul.
enviroment can be added as follows :
PATH_FILE=/directory/store/data/namekey
namekey
is a file data store.
- External as a Service
- Record response status for each executed