Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Add small improvements in catalog chart (#2814)
Browse files Browse the repository at this point in the history
  • Loading branch information
mszostok authored Dec 1, 2020
1 parent a7501f1 commit f83ebf9
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion charts/catalog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ chart and their default values.
| `webhook.minReadySeconds` | how many seconds an webhook server pod needs to be ready before killing the next, during update | `1` |
| `webhook.annotations` | Annotations for webhook pods | `{}` |
| `webhook.nodeSelector` | A nodeSelector value to apply to the webhook pods. If not specified, no nodeSelector will be applied | |
| `webhook.service.type` | Type of service; valid values are `LoadBalancer` , `NodePort` and `ClusterIP` | `NodePort` |
| `webhook.service.type` | Type of service; valid values are `LoadBalancer` , `NodePort` and `ClusterIP` | `ClusterIP` |
| `webhook.service.nodePort.securePort` | If service type is `NodePort`, specifies a port in allowable range (e.g. 30000 - 32767 on minikube); The TLS-enabled endpoint will be exposed here | `30443` |
| `webhook.service.clusterIP` | If service type is ClusterIP, specify clusterIP as `None` for `headless services` OR specify your own specific IP OR leave blank to let Kubernetes assign a cluster IP | |
| `webhook.verbosity` | Log level; valid values are in the range 0 - 10 | `10` |
Expand Down
3 changes: 1 addition & 2 deletions charts/catalog/templates/controller-manager-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ metadata:
heritage: "{{ .Release.Service }}"
spec:
replicas: {{ .Values.controllerManager.replicas }}
strategy:
type: {{ .Values.controllerManager.updateStrategy }}
strategy: {{ toYaml .Values.controllerManager.strategy | nindent 4 }}
minReadySeconds: {{ .Values.controllerManager.minReadySeconds }}
selector:
matchLabels:
Expand Down
4 changes: 3 additions & 1 deletion charts/catalog/templates/controller-manager-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ spec:
targetPort: 8444
{{- if eq .Values.controllerManager.service.type "NodePort" }}
nodePort: {{ .Values.controllerManager.service.nodePort.securePort }}
{{- end }}
{{ else }}
nodePort: null
{{ end }}
3 changes: 1 addition & 2 deletions charts/catalog/templates/webhook-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ metadata:
heritage: "{{ .Release.Service }}"
spec:
replicas: 1
strategy:
type: {{ .Values.webhook.updateStrategy }}
strategy: {{ toYaml .Values.webhook.strategy | nindent 4 }}
minReadySeconds: {{ .Values.webhook.minReadySeconds }}
selector:
matchLabels:
Expand Down
2 changes: 2 additions & 0 deletions charts/catalog/templates/webhook-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,6 @@ spec:
targetPort: 8443
{{- if eq .Values.webhook.service.type "NodePort" }}
nodePort: {{ .Values.webhook.service.nodePort.securePort }}
{{ else }}
nodePort: null
{{- end }}
22 changes: 14 additions & 8 deletions charts/catalog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ imagePullPolicy: Always
rbacEnable: true
rbacApiVersion: rbac.authorization.k8s.io/v1
webhook:
# updateStrategy for service-catalog; value values are "RollingUpdate" and "Recreate"
updateStrategy: RollingUpdate
# deployment strategy for service-catalog webhook
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
minReadySeconds: 1
# annotations is a collection of annotations to add to the webhook pods.
annotations: {}
Expand All @@ -23,11 +26,11 @@ webhook:
enabled: true
# Attributes of the webhook's service resource
service:
port: 443
# Type of service; valid values are "LoadBalancer", "NodePort" or "ClusterIP"
# NodePort is useful if deploying on bare metal or hacking locally on
# minikube
port: 443
type: NodePort
type: ClusterIP
# Further configuration for services of type NodePort
nodePort:
# Available port in allowable range (e.g. 30000 - 32767 on minikube)
Expand All @@ -41,14 +44,17 @@ webhook:
resources:
requests:
cpu: 100m
memory: 20Mi
memory: 35Mi
limits:
cpu: 100m
memory: 30Mi
memory: 45Mi
controllerManager:
replicas: 1
# updateStrategy for service-catalog; value values are "RollingUpdate" and "Recreate"
updateStrategy: RollingUpdate
# deployment strategy for service-catalog controllerManager
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
minReadySeconds: 1
# annotations is a collection of annotations to add to the controllerManager pod.
annotations: {}
Expand Down

0 comments on commit f83ebf9

Please sign in to comment.