Skip to content

Commit

Permalink
[ocp-proxy-api] Making Service Ports configuration (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
oybed authored Apr 6, 2023
1 parent ece0b09 commit ad77e0f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/ocp-proxy-api/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: ocp-proxy-api
description: A Helm chart for Kubernetes to create and manage an nginx proxy for OCP API/Console
type: application
version: 0.1.2
version: 0.1.3
home: "https://rh-mobb.github.io/helm-charts/"
maintainers:
- name: rh-mobb
11 changes: 3 additions & 8 deletions charts/ocp-proxy-api/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@ metadata:
spec:
type: {{ .Values.service.type }}
externalTrafficPolicy: Local
{{- with .Values.service.ports }}
ports:
- port: 6443
targetPort: https
protocol: TCP
name: api
- port: 443
targetPort: https
protocol: TCP
name: ingress
{{- toYaml . | nindent 4 }}
{{- end }}
selector:
{{- include "ocp-proxy-api.selectorLabels" . | nindent 4 }}
{{- with .Values.service.loadBalancerSourceRanges }}
Expand Down
9 changes: 9 additions & 0 deletions charts/ocp-proxy-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ podAnnotations: {}
service:
type: LoadBalancer
port: 80
ports:
- port: 6443
targetPort: https
protocol: TCP
name: api
- port: 443
targetPort: https
protocol: TCP
name: ingress
loadBalancerSourceRanges: []
# - 192.168.1.0/24
# - 10.1.1.0/24
Expand Down

0 comments on commit ad77e0f

Please sign in to comment.