Update postgres and datadog

This commit is contained in:
2022-03-22 10:49:06 +11:00
parent 4d79c56d67
commit 58091645f6
4 changed files with 14 additions and 12 deletions
+4 -6
View File
@@ -298,7 +298,7 @@ datadog:
networkMonitoring:
# datadog.networkMonitoring.enabled -- Enable network performance monitoring
enabled: false
enabled: true
## Enable security agent and provide custom configs
securityAgent:
@@ -559,7 +559,7 @@ agents:
# agents.image.tag -- Define the Agent version to use
## Use 7-jmx to enable jmx fetch collection
tag: 7.24.1
tag: 7.34.0
# agents.image.doNotCheckTag -- Skip the version<>chart compatibility check
## By default, the version passed in agents.image.tag is checked
@@ -812,10 +812,8 @@ agents:
# agents.tolerations -- Allow the DaemonSet to schedule on tainted nodes (requires Kubernetes >= 1.6)
tolerations:
- key: "node"
operator: "Equal"
value: "special"
effect: "NoSchedule"
- effect: NoSchedule
operator: Exists
# agents.nodeSelector -- Allow the DaemonSet to schedule on selected nodes
## Ref: https://kubernetes.io/docs/user-guide/node-selection/
+2 -4
View File
@@ -18,10 +18,8 @@ spec:
nodeSelector:
kubernetes.io/hostname: server-1
tolerations:
- key: "node"
operator: "Equal"
value: "special"
effect: "NoSchedule"
- effect: NoSchedule
operator: Exists
containers:
- name: pihole
image: pihole/pihole:latest
+3 -2
View File
@@ -66,8 +66,9 @@ primary:
labels:
role: primary
service:
type: NodePort
nodePort: 32222
type: ClusterIP
nodePort:
postgresql: 32222
terminationGracePeriodSeconds: 5
resources:
requests:
+5
View File
@@ -75,3 +75,8 @@ sudo rm /swap.img
vim /etc/fstab # and remove swap
# check
sudo swapon --show
# to restore postgres db from dump file
cat ~/Downloads/dump-2022-03-21_05-48-05_UTC.tar.gz| gunzip | psql --set ON_ERROR_STOP=off postgres -h 192.168.1.2 -p 30973 -U postgres