Skip to content

Commit

Permalink
Merge pull request sorintlab#227 from sgotti/k8s_example_disable_debug
Browse files Browse the repository at this point in the history
k8s example: disable debug logs
  • Loading branch information
sgotti committed Dec 13, 2016
2 parents 43b2cec + 7a590f3 commit e90771a
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 35 deletions.
8 changes: 3 additions & 5 deletions examples/kubernetes/rc/stolon-keeper0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ spec:
chown stolon:stolon $PGDATA
exec gosu stolon stolon-keeper --data-dir $PGDATA
env:
- name: KEEPER
value: "true"
- name: STKEEPER_UID
value: "keeper0"
- name: STKEEPER_CLUSTER_NAME
Expand All @@ -39,7 +37,6 @@ spec:
value: "etcd" # Or consul
- name: STKEEPER_STORE_ENDPOINTS
value: "http://192.168.122.1:2379"
# Enable debugging
- name: STKEEPER_PG_REPL_USERNAME
value: "repluser"
# Or use a password file like in the below supersuser password
Expand All @@ -49,8 +46,9 @@ spec:
value: "stolon"
- name: STKEEPER_PG_SU_PASSWORDFILE
value: "/etc/secrets/stolon/password"
- name: STKEEPER_DEBUG
value: "true"
## Uncomment this to enable debug logs
#- name: STKEEPER_DEBUG
# value: "true"
ports:
- containerPort: 5432
volumeMounts:
Expand Down
8 changes: 3 additions & 5 deletions examples/kubernetes/rc/stolon-keeper1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ spec:
chown stolon:stolon $PGDATA
exec gosu stolon stolon-keeper --data-dir $PGDATA
env:
- name: KEEPER
value: "true"
- name: STKEEPER_UID
value: "keeper1"
- name: STKEEPER_CLUSTER_NAME
Expand All @@ -39,7 +37,6 @@ spec:
value: "etcd" # Or consul
- name: STKEEPER_STORE_ENDPOINTS
value: "http://192.168.122.1:2379"
# Enable debugging
- name: STKEEPER_PG_REPL_USERNAME
value: "repluser"
# Or use a password file like in the below supersuser password
Expand All @@ -49,8 +46,9 @@ spec:
value: "stolon"
- name: STKEEPER_PG_SU_PASSWORDFILE
value: "/etc/secrets/stolon/password"
- name: STKEEPER_DEBUG
value: "true"
## Uncomment this to enable debug logs
#- name: STKEEPER_DEBUG
# value: "true"
ports:
- containerPort: 5432
volumeMounts:
Expand Down
8 changes: 3 additions & 5 deletions examples/kubernetes/rc/stolon-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ spec:
- |
exec gosu stolon stolon-proxy
env:
- name: PROXY
value: "true"
- name: STPROXY_CLUSTER_NAME
# TODO(sgotti) Get cluster name from "stoloncluster" label using a downward volume api instead of duplicating the name here
value: "kube-stolon"
Expand All @@ -33,9 +31,9 @@ spec:
value: "http://192.168.122.1:2379"
- name: STPROXY_LISTEN_ADDRESS
value: "0.0.0.0"
# Enable debugging
- name: STPROXY_DEBUG
value: "true"
## Uncomment this to enable debug logs
#- name: STPROXY_DEBUG
# value: "true"
ports:
- containerPort: 5432
readinessProbe:
Expand Down
8 changes: 3 additions & 5 deletions examples/kubernetes/rc/stolon-sentinel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ spec:
- |
exec gosu stolon stolon-sentinel
env:
- name: SENTINEL
value: "true"
- name: STSENTINEL_CLUSTER_NAME
value: "kube-stolon"
- name: STSENTINEL_STORE_BACKEND
value: "etcd" # Or consul
- name: STSENTINEL_STORE_ENDPOINTS
value: "http://192.168.122.1:2379"
# Enable debugging
- name: STSENTINEL_DEBUG
value: "true"
## Uncomment this to enable debug logs
#- name: STSENTINEL_DEBUG
# value: "true"
8 changes: 3 additions & 5 deletions examples/kubernetes/statefulset/stolon-keeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,13 @@ spec:
chown stolon:stolon $PGDATA
exec gosu stolon stolon-keeper --data-dir $PGDATA
env:
- name: KEEPER
value: "true"
- name: STKEEPER_CLUSTER_NAME
# TODO(sgotti) Get cluster name from "stoloncluster" label using a downward volume api instead of duplicating the name here
value: "kube-stolon"
- name: STKEEPER_STORE_BACKEND
value: "etcd" # Or consul
- name: STKEEPER_STORE_ENDPOINTS
value: "http://192.168.122.1:2379"
# Enable debugging
- name: STKEEPER_PG_REPL_USERNAME
value: "repluser"
# Or use a password file like in the below supersuser password
Expand All @@ -50,8 +47,9 @@ spec:
value: "stolon"
- name: STKEEPER_PG_SU_PASSWORDFILE
value: "/etc/secrets/stolon/password"
- name: STKEEPER_DEBUG
value: "true"
## Uncomment this to enable debug logs
#- name: STKEEPER_DEBUG
# value: "true"
ports:
- containerPort: 5432
volumeMounts:
Expand Down
8 changes: 3 additions & 5 deletions examples/kubernetes/statefulset/stolon-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ spec:
- |
exec gosu stolon stolon-proxy
env:
- name: PROXY
value: "true"
- name: STPROXY_CLUSTER_NAME
# TODO(sgotti) Get cluster name from "stoloncluster" label using a downward volume api instead of duplicating the name here
value: "kube-stolon"
Expand All @@ -33,9 +31,9 @@ spec:
value: "http://192.168.122.1:2379"
- name: STPROXY_LISTEN_ADDRESS
value: "0.0.0.0"
# Enable debugging
- name: STPROXY_DEBUG
value: "true"
## Uncomment this to enable debug logs
#- name: STPROXY_DEBUG
# value: "true"
ports:
- containerPort: 5432
readinessProbe:
Expand Down
8 changes: 3 additions & 5 deletions examples/kubernetes/statefulset/stolon-sentinel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,12 @@ spec:
- |
exec gosu stolon stolon-sentinel
env:
- name: SENTINEL
value: "true"
- name: STSENTINEL_CLUSTER_NAME
value: "kube-stolon"
- name: STSENTINEL_STORE_BACKEND
value: "etcd" # Or consul
- name: STSENTINEL_STORE_ENDPOINTS
value: "http://192.168.122.1:2379"
# Enable debugging
- name: STSENTINEL_DEBUG
value: "true"
## Uncomment this to enable debug logs
#- name: STSENTINEL_DEBUG
# value: "true"

0 comments on commit e90771a

Please sign in to comment.