Initial commit
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ owncast_name | to_json }}
|
||||
namespace: {{ owncast_namespace | to_json }}
|
||||
annotations: {{ owncast_service_annotations | to_json }}
|
||||
spec:
|
||||
selector:
|
||||
app: {{ owncast_name | to_json }}
|
||||
type: {{ owncast_service_type | to_json }}
|
||||
{% if owncast_service_type in ['LoadBalancer', 'NodePort'] %}
|
||||
externalTrafficPolicy: {{ owncast_external_traffic_policy | to_json }}
|
||||
{% endif %}
|
||||
{% if owncast_service_type == 'LoadBalancer' and owncast_load_balancer_source_ranges | length > 0 %}
|
||||
loadBalancerSourceRanges: {{ owncast_load_balancer_source_ranges | to_json }}
|
||||
{% endif %}
|
||||
ports:
|
||||
- name: rtmp
|
||||
port: 1935
|
||||
targetPort: rtmp
|
||||
protocol: TCP
|
||||
- name: http
|
||||
port: 8080
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
Reference in New Issue
Block a user