Closed Matthew-Beckett closed 2 years ago
The chart is not throwing that error, it is the Kubernetes API telling you that it is not possible to use externalTrafficPolicy in combination with a ClusterIP service type.
As you can see here, we only put it in 1:1 if it is specified: https://github.com/k8s-at-home/library-charts/blob/main/charts/stable/common/templates/classes/_service.tpl#L52-L54
I did notice that the ownCast chart has a default value set for externalTrafficPolicy
, that might be the cause. Could you try setting service.rtmp.externalTrafficPolicy: ""
in your values.yaml
file and see if that helps?
HI @bjw-s
Providing a null value string successfully overrode the default externalTrafficPolicy
in the owncast chart and allowed me to deploy the RTMP service in ClusterIP type.
Thanks for your help!
Helm chart name
owncast
Helm chart version
3.3.2
Container name
gabekangas/owncast
Container tag
latest
Description
When deploying Owncast with the
rtmp
service deployed on a ClusterIP Service instead of the provided LoadBalancer service type deployment will fail as there is guard rails in the chart for checking the value ofexternalTrafficPolicy
.When providing an
externalTrafficPolicy
ofCluster
the following output is returned:and when providing an
externalTrafficPolicy
ofLocal
the following output is returned:I also could not set it to nil.
Expected result
I should be able to provide an externalTrafficPolicy of
Local
orCluster
depending on my use case.Helm values to reproduce
Additional Information
No response
Repo link
No response