Skip to content

Commit 1317a3b

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents b71a758 + 1021fd6 commit 1317a3b

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: Kubernetes Troubleshooting
3+
description: Troubleshooting Kubernetes issues
4+
---
5+
6+
### Error: `invalid host in "tcp://<internal ip>:8080" of the "listen" directive in /etc/nginx/conf.d/default.conf:7`
7+
8+
By default, Kubernetes will grab information about the service object linked to a pod and inject it as an environment variable into the pod. In RomM, this leads to the pod attempting to bind to the service IP address, leading to the above fatal error.
9+
10+
To resolve thes error, this default Kubernetes behaviour needs to be disabled by setting the `enableServiceLinks` value in the pod spec to `false`.
11+
12+
```yaml
13+
apiVersion: apps/v1
14+
kind: Deployment
15+
metadata:
16+
name: romm
17+
namespace: romm
18+
...
19+
spec:
20+
...
21+
template:
22+
...
23+
spec:
24+
enableServiceLinks: false
25+
...
26+
```

0 commit comments

Comments
 (0)