Skip to content

Commit b2499a2

Browse files
authored
Have option for Collector pod to run on Host Network (#123)
* Have option for Collector pod to run on Host Network * Increment Chart version
1 parent 5d129c4 commit b2499a2

4 files changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ $ helm repo remove cloudhealth
9494
| `podAnnotations` | Additional pod annotations | `{}` |
9595
| `podSecurityContext` | Enable security context for CloudHealth Collector pods | `{}` |
9696
| `securityContext` | Enable security context for CloudHealth Collector | `{}` |
97+
| `hostNetwork` | Run collector pod on Host Network | `false` |
9798
| `affinity` | Affinity for pod assignment | `{}` |
9899
| `nodeSelector` | Node labels for pod assignment | `{}` |
99100
| `tolerations` | Tolerations for pod assignment | `[]` |

charts/cloudhealth-collector/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: v2
55
name: cloudhealth-collector
66
description: A Helm chart for CloudHealth's Kubernetes Collector Agent
77
type: application
8-
version: 4.6.2
8+
version: 4.6.3
99
appVersion: "7.0.0"
1010
home: https://cloudhealth.vmware.com/
1111
icon: https://d1fto35gcfffzn.cloudfront.net/images/Tanzu-Logomark.svg

charts/cloudhealth-collector/templates/deployment.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ spec:
3232
securityContext: {{- toYaml . | nindent 8 }}
3333
{{- end }}
3434
priorityClassName: {{ .Values.priorityClassName }}
35+
hostNetwork: {{ .Values.hostNetwork }}
3536
{{- if .Values.proxy.sslCert }}
3637
initContainers:
3738
- name: "{{ .Chart.Name }}-pem-to-truststore"

charts/cloudhealth-collector/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ containerSecurityContext: {
6565
capabilities: {drop: [all]}
6666
}
6767

68+
# -- Run the collector on the host network
69+
hostNetwork: false
70+
6871
proxy:
6972
sslCert: false
7073
#-Dhttps.proxyHost=$PROXY_SERVER -Dhttps.proxyPort=$PROXY_PORT -Dhttps.nonProxyHosts=kubernetes.default.svc -Djavax.net.ssl.trustStore=/etc/ssl/certs/truststore.jks -Djavax.net.ssl.trustStorePassword=changeit

0 commit comments

Comments
 (0)