fajarhide / getconsul

get consul value automation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Go 71.5%Language:Dockerfile 28.5%