Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update openelb v0.5.1 #299

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/stable/openelb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: v2
appVersion: 0.5.0
appVersion: 0.5.1
description: Bare Metal Load-balancer for Kubernetes Cluster
icon: https://raw.githubusercontent.com/openelb/openelb/master/docs/logo/openelb-vertical.svg
maintainers:
- email: [email protected]
name: KubeSphere
name: openelb
version: 0.5.0
version: 0.5.1
sources:
- https://github.com/openelb/openelb
type: application
19 changes: 19 additions & 0 deletions src/stable/openelb/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{ if .Values.customImage.enable }}
apiVersion: v1
kind: ConfigMap
metadata:
name: openelb-images
namespace: {{ template "openelb.namespace" . }}
data:
{{ if (ne .Values.customImage.forwardImage "") }}
forward-image: {{ .Values.customImage.forwardImage }}
{{ end }}

{{ if (ne .Values.customImage.proxyImage "") }}
proxy-image: {{ .Values.customImage.proxyImage }}
{{ end }}

{{ if (ne .Values.customImage.vipImage "") }}
keepalived-vip-image: {{ .Values.customImage.vipImage }}
{{ end }}
{{ end }}
4 changes: 4 additions & 0 deletions src/stable/openelb/templates/manager-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
args:
- --webhook-port={{ .Values.manager.webhookPort }}
- --api-hosts={{ .Values.manager.apiHosts }}
{{ if .Values.manager.monitorEnable }}
{{- $metricsAddr := cat ":" .Values.manager.monitorPort |toString -}}
- --metrics-addr={{- nospace $metricsAddr -}}
{{ end }}
env:
- name: NODE_NAME
valueFrom:
Expand Down
9 changes: 7 additions & 2 deletions src/stable/openelb/templates/manager-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ kind: Service
metadata:
name: {{ template "openelb.manager.fullname" . }}
labels:
app: openelb-manager
{{- include "openelb.manager.labels" . | nindent 4 }}
namespace: {{ template "openelb.namespace" . }}
spec:
selector:
{{- include "openelb.manager.labels" . | nindent 4 }}
ports:
- name: https-webhook
port: 443
targetPort: webhook
selector:
{{- include "openelb.manager.labels" . | nindent 4 }}
{{ if .Values.manager.monitorEnable }}
- port: {{ .Values.manager.monitorPort }}
name: metrics
{{ end }}
type: ClusterIP
24 changes: 24 additions & 0 deletions src/stable/openelb/templates/monitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ if .Values.manager.monitorEnable }}

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
labels:
{{- include "openelb.manager.labels" . | nindent 4 }}
name: {{ template "openelb.manager.fullname" . }}
namespace: {{ template "openelb.namespace" . }}
spec:
endpoints:
- path: /metrics
port: metrics
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
tlsConfig:
insecureSkipVerify: true
namespaceSelector:
matchNames:
- {{ template "openelb.namespace" . }}
selector:
matchLabels:
app: openelb-manager

{{ end }}
10 changes: 9 additions & 1 deletion src/stable/openelb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ admission:

manager:
apiHosts: ":50051"
monitorEnable: false
monitorPort: 50052
webhookPort: 443
image:
repository: kubesphere/openelb
tag: v0.5.0
tag: v0.5.1
pullPolicy: IfNotPresent
resources:
limits:
Expand All @@ -36,3 +38,9 @@ manager:
serviceAccount:
create: true
name: openelb-manager

customImage:
enable: true
vipImage: "" # "kubesphere/kube-keepalived-vip:0.35"
forwardImage: "" # kubesphere/openelb-forward:master
proxyImage: "" # kubesphere/openelb-proxy:master