Skip to content

Commit f4ca7dd

Browse files
oktalzGopher Bot
authored andcommitted
CLEANUP/MINOR: reduce number of unnecessary logs
1 parent d0a6717 commit f4ca7dd

4 files changed

Lines changed: 15 additions & 4 deletions

File tree

deploy/haproxy-ingress.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ spec:
192192
valueFrom:
193193
fieldRef:
194194
fieldPath: metadata.namespace
195+
- name: POD_IP
196+
valueFrom:
197+
fieldRef:
198+
fieldPath: status.podIP
195199
---
196200
apiVersion: v1
197201
kind: Service

deploy/tests/config/3.ingress-controller.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ spec:
4949
startupProbe:
5050
httpGet:
5151
path: /healthz
52-
port: 1024
52+
port: 1042
5353
failureThreshold: 30
5454
periodSeconds: 1
5555
livenessProbe:
5656
httpGet:
5757
path: /healthz
58-
port: 1024
58+
port: 1042
5959
initialDelaySeconds: 5
6060
periodSeconds: 5
6161
readinessProbe:
6262
httpGet:
6363
path: /healthz
64-
port: 1024
64+
port: 1042
6565
periodSeconds: 5
6666
ports:
6767
- name: http
@@ -70,6 +70,8 @@ spec:
7070
containerPort: 443
7171
- name: stat
7272
containerPort: 31024
73+
- name: healthz
74+
containerPort: 31042
7375
- name: tcp1
7476
containerPort: 32766
7577
- name: tcp2
@@ -116,6 +118,10 @@ spec:
116118
port: 31024
117119
targetPort: 31024
118120
nodePort: 31024
121+
- name: healthz
122+
port: 31042
123+
targetPort: 31042
124+
nodePort: 31042
119125
- name: tcp1
120126
port: 32766
121127
targetPort: 32766

fs/usr/local/etc/haproxy/haproxy.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ frontend healthz
4343

4444
frontend stats
4545
mode http
46+
no log
4647
http-request set-var(txn.base) base
4748
http-request use-service prometheus-exporter if { path /metrics }
4849
stats enable

pkg/k8s/crs-monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func (k k8s) RunCRSCreationMonitoring(eventChan chan k8ssync.SyncDataEvent, stop
135135
crsV3[groupKind.Kind] = NewFrontendCRV3()
136136
}
137137
if ok {
138-
logger.Info("Custom resource definition created, adding CR watcher for " + crsV3[groupKind.Kind].GetKind())
138+
logger.Info("Custom resource definition created, adding CR watcher for " + crsV3[groupKind.Kind].GetKind() + " " + groupKind.Group)
139139
}
140140
}
141141

0 commit comments

Comments
 (0)