Questions tagged [confd]

A tool to manage local configuration files using templates and data from distributed storage

confd is a lightweight configuration management tool focused on:

  • synchronizing configuration files by polling etcd or consul and processing template resources
  • reloading applications to pick up new configuration file changes

Find out more about the project on Github or the official site.

34 questions
19
votes
1 answer

Restart postgres in a docker environment

I have troubles restarting a dockerized postgres database (I use Core OS). The database is started in a bash script using the command # boot.sh sudo -i -u postgres /usr/lib/postgresql/9.3/bin/postgres -D /var/lib/postgresql/9.3/main -c…
Raphael
  • 1,709
  • 2
  • 17
  • 27
10
votes
3 answers

Using dynamic values in Kubernetes manifests

I have two separate Kubernetes clusters that will be used for a staging and a production environment, respectively. I want to have YAML manifests for the Kubernetes API objects I will be submitting to each cluster, but some of the objects will have…
Jimmy
  • 35,686
  • 13
  • 80
  • 98
9
votes
2 answers

Populating Docker containers with sensitive information using kubernetes

I have a pod that runs containers which require access to sensitive information like API keys and DB passwords. Right now, these sensitive values are embedded in the controller definitions like so: env: - name: DB_PASSWORD value: password which…
hohner
  • 11,498
  • 8
  • 49
  • 84
7
votes
2 answers

How to set environment variables with a forward slash in the key

Is there a way to export an environment variable with a slash in the name such as: export /myapp/db/username=someval This post indicates it should be possible but I cannot figure out valid syntax to do so. For background: I am using confd to produce…
bromanko
  • 928
  • 1
  • 9
  • 15
5
votes
4 answers

How to restart Kubernetes pod when a secret is updated in Hashicorp Vault?

Have successfully implemented Vault with Kubernetes and applications running in K8s are getting their environment variables from Hashicorp vault. Everything is great! But, want to take a step forward and want to restart the pod whenever a change is…
AshitAcharya
  • 103
  • 4
  • 12
3
votes
1 answer

how do I get with confd the key string value generate with etcd

I am using confd and etcd. I am following the confd example for nginx. I put these keys in my etcd service: curl http://127.0.0.1:4001/v2/keys/myapp/upstream -XPUT -d dir=true curl http://127.0.0.1:4001/v2/keys/myapp/subdomain -XPUT -d…
Robert
  • 10,403
  • 14
  • 67
  • 117
3
votes
1 answer

confd peers are not reachable

Running confd -debug=true -verbose -onetime -node 172.17.0.61:4001 -confdir ./confd gives me the following 2014-08-08T10:57:25+02:00 HAL75 confd[20762]: WARNING Skipping confd config file. 2014-08-08T10:57:25+02:00 HAL75 confd[20762]: NOTICE…
daemonza
  • 527
  • 5
  • 16
2
votes
1 answer

How to shift slice in go template?

I'm using confd to populate a file through a template. In this file, I want to have a list of elements shifted and inserted. This slice contains strings like 0=container-1 1=container-2 2=container-3 3=container-4 (in fact, it is a string that I…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
2
votes
1 answer

Odd behaviour of dnsmasq across docker containers

I have a CoreOS instance running a docker container which runs dnsmasq. Currently the dnsmasq configuration only set to log all queries and to run in debug mode, so it should just do the caching. When I try to use this from a different container…
Vasili Sviridov
  • 191
  • 2
  • 4
  • 14
2
votes
4 answers

How Can I install `passenger-install-nginx-module` via Dockerfile

How Can I install passenger-install-nginx-module via Dockerfile? FROM ubuntu:14.04 MAINTAINER hgkim RUN apt-get update \ && apt-get install -y curl build-essential libpq-dev advancecomp gcc libpcre3 \ libpcre3-dev zlib1g zlib1g-dev…
chobo
  • 4,830
  • 5
  • 23
  • 36
1
vote
2 answers

Attributes sequencing in Netconf operation

My device wants attribute X to be set before attribute Y. How do we implement it in an NMS/EMS? My understanding is that irrespective of the protocol being used such as Netconf, SNMP, etc, my NMS has to send 2 SET/EDIT PDUs. But, ConfD Kick Start…
Mohan
  • 129
  • 8
1
vote
1 answer

Yang: Force user to input from the list to which the node is referring to

I am new to yang. Below is my yang config. container ntp { tailf:info "NTP Configuration"; tailf:cli-oper-info "Display NTP information"; tailf:cli-incomplete-show-path; //ntp server config leaf-list server { tailf:info "NTP servers"; …
vivek
  • 467
  • 2
  • 6
  • 18
1
vote
1 answer

zsh: killed for confd

I tried installing confd using their official installation guide https://github.com/kelseyhightower/confd/blob/master/docs/installation.md Installation went okay without any error. However, when I am trying to run confd using terminal, I am getting…
kartikmaji
  • 946
  • 7
  • 22
1
vote
0 answers

How to write the dockerfile for haproxy, etcd, and confd together?

I want to use docker to run haproxy, etcd and confd together in a container. What would be the recommended way to achieve this? This is currently what I have: FROM haproxy:1.8 COPY ./haproxyconfig/haproxy.cfg…
1
vote
1 answer

confd newbie trying to get if in template to work getting "invalid type for comparison"

I have exported a variable: export myparam=one I have template: file.tmpl : myproptmpl = {{ if eq .myparam "one" }} {{ "one" }} {{ else }} {{ "something else" }} {{ end }} And when I run confd I get: # /usr/bin/confd -onetime -backend…
Jas
  • 14,493
  • 27
  • 97
  • 148
1
2 3