Skip to content

fajarhide/getconsul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get KV Consul

Made in Indonesia

Version v0.0.1

The kv get data value via API consul use Authentication

Feature

  • Basic Auth
  • Token
  • Store Data
  • Parsing Base64
  • Loop Update

How Usage

This can be used by all realtime automation key update values ​​from consul.

Pull Images Docker

docker pull fajarhide/getconsul

Kubernetes

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.

TODO

  • External as a Service
  • Record response status for each executed

About

get consul value automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published