Skip to content

Commit e8a57ed

Browse files
authored
Update README.md
1 parent 55838c5 commit e8a57ed

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

terraform-provider-civo/k8s/talos/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,22 @@ Up to 10000 certificates can be issued per registered domain (i.e we used nip.io
7575
```Error
7676
Failed to create Order: 429 urn:ietf:params:acme:error:rateLimited: too many certificates (10000) already issued for "nip.io"
7777
```
78-
78+
## PodSecurity Restrictions fails node-exporter creation
79+
due to extra privilege necessary to create node exporter pods that scrape Hostnetwork and HostPID metrics , I had to add a label for cluster-tools namespace to make it work.
80+
```
81+
Error creating: pods "prometheus-prometheus-node-exporter-b6jmf" is forbidden: violates PodSecurity "baseline:latest": host namespaces (hostNetwork=true, hostPID=true), hostPath volumes (volumes "proc", "sys", "root"), hostPort (container "node-exporter" uses hostPort 9100)
82+
```
83+
**Namespace Pod Secuirity label**
84+
```
85+
resource "kubernetes_namespace" "cluster_tools" {
86+
metadata {
87+
name = var.cluster_tools_namespace
88+
# allow for privileged prometheus-node-exporter to scrape Hostnetwork & HostPID metrics
89+
labels = {
90+
"pod-security.kubernetes.io/enforce" = "privileged"
91+
# }
92+
}
93+
```
7994
## 🛠 Future Enhancements
8095
- Add External DNS integration
8196
- Enable ArgoCD

0 commit comments

Comments
 (0)