Add ovn
Change-Id: I2b1457042afcbe1375b771161acfa929a91e6813
This commit is contained in:
parent
728641cce3
commit
6c5206a01c
@ -15,7 +15,7 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm libvirt
|
||||
name: libvirt
|
||||
version: 0.1.16
|
||||
version: 0.1.17
|
||||
home: https://libvirt.org
|
||||
sources:
|
||||
- https://libvirt.org/git/?p=libvirt.git;a=summary
|
||||
|
8
libvirt/values_overrides/ovn.yaml
Normal file
8
libvirt/values_overrides/ovn.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
---
|
||||
dependencies:
|
||||
dynamic:
|
||||
targeted:
|
||||
openvswitch:
|
||||
libvirt:
|
||||
pod: []
|
||||
...
|
@ -15,7 +15,7 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm OpenVSwitch
|
||||
name: openvswitch
|
||||
version: 0.1.10
|
||||
version: 0.1.11
|
||||
home: http://openvswitch.org
|
||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Neutron/OpenStack_Project_Neutron_vertical.png
|
||||
sources:
|
||||
|
5
openvswitch/values_overrides/ovn.yaml
Normal file
5
openvswitch/values_overrides/ovn.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
conf:
|
||||
openvswitch_db_server:
|
||||
ptcp_port: 6640
|
||||
...
|
1
ovn/.helmignore
Normal file
1
ovn/.helmignore
Normal file
@ -0,0 +1 @@
|
||||
values_overrides
|
26
ovn/Chart.yaml
Normal file
26
ovn/Chart.yaml
Normal file
@ -0,0 +1,26 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
appVersion: v23.3.0
|
||||
description: OpenStack-Helm OVN
|
||||
name: ovn
|
||||
version: 0.1.0
|
||||
home: https://www.ovn.org
|
||||
icon: https://www.ovn.org/images/ovn-logo.png
|
||||
sources:
|
||||
- https://github.com/ovn-org/ovn
|
||||
- https://opendev.org/openstack/openstack-helm
|
||||
maintainers:
|
||||
- name: OpenStack-Helm Authors
|
||||
...
|
18
ovn/requirements.yaml
Normal file
18
ovn/requirements.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
---
|
||||
dependencies:
|
||||
- name: helm-toolkit
|
||||
repository: file://../helm-toolkit
|
||||
version: ">= 0.1.0"
|
||||
...
|
1389
ovn/templates/bin/_ovn.sh.tpl
Normal file
1389
ovn/templates/bin/_ovn.sh.tpl
Normal file
File diff suppressed because it is too large
Load Diff
29
ovn/templates/configmap-bin.yaml
Normal file
29
ovn/templates/configmap-bin.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
{{/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.configmap_bin }}
|
||||
{{- $envAll := . }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: ovn-bin
|
||||
data:
|
||||
{{- if .Values.images.local_registry.active }}
|
||||
image-repo-sync.sh: |
|
||||
{{- include "helm-toolkit.scripts.image_repo_sync" . | indent 4 }}
|
||||
{{- end }}
|
||||
ovn.sh: |
|
||||
{{ tuple "bin/_ovn.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||
{{- end }}
|
78
ovn/templates/daemonset-controller.yaml
Normal file
78
ovn/templates/daemonset-controller.yaml
Normal file
@ -0,0 +1,78 @@
|
||||
{{/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.daemonset_controller }}
|
||||
{{- $envAll := . }}
|
||||
|
||||
{{- $serviceAccountName := "ovn-controller" }}
|
||||
{{ tuple $envAll "ovn_controller" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||
---
|
||||
kind: DaemonSet
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: ovn-controller
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||
labels:
|
||||
{{ tuple $envAll "ovn" "ovn-controller" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
{{ tuple $envAll "ovn" "ovn-controller" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{ tuple $envAll "ovn" "ovn-controller" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
||||
spec:
|
||||
serviceAccountName: {{ $serviceAccountName }}
|
||||
nodeSelector:
|
||||
{{ .Values.labels.ovn_controller.node_selector_key }}: {{ .Values.labels.ovn_controller.node_selector_value }}
|
||||
initContainers:
|
||||
{{- tuple $envAll "ovn_controller" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||
containers:
|
||||
- name: ovn-controller
|
||||
{{ tuple $envAll "ovn_controller" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
command:
|
||||
- /tmp/start.sh
|
||||
- ovn-controller
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.server | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
env:
|
||||
- name: K8S_NODE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
- name: OVN_ENCAP_IP
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: status.hostIP
|
||||
volumeMounts:
|
||||
- name: ovn-bin
|
||||
mountPath: /tmp/start.sh
|
||||
subPath: ovn.sh
|
||||
readOnly: true
|
||||
- name: run-openvswitch
|
||||
mountPath: /run/openvswitch
|
||||
volumes:
|
||||
- name: ovn-bin
|
||||
configMap:
|
||||
name: ovn-bin
|
||||
defaultMode: 0555
|
||||
- name: run-openvswitch
|
||||
hostPath:
|
||||
path: /run/openvswitch
|
||||
type: DirectoryOrCreate
|
||||
{{- end }}
|
66
ovn/templates/deployment-northd.yaml
Normal file
66
ovn/templates/deployment-northd.yaml
Normal file
@ -0,0 +1,66 @@
|
||||
{{/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.deployment_northd }}
|
||||
{{- $envAll := . }}
|
||||
|
||||
{{- $serviceAccountName := "ovn-northd" }}
|
||||
{{ tuple $envAll "ovn_northd" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||
---
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: ovn-northd
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
|
||||
labels:
|
||||
{{ tuple $envAll "ovn" "ovn-northd" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
{{ tuple $envAll "ovn" "ovn-northd" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{ tuple $envAll "ovn" "ovn-northd" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
||||
spec:
|
||||
serviceAccountName: {{ $serviceAccountName }}
|
||||
nodeSelector:
|
||||
{{ .Values.labels.ovn_northd.node_selector_key }}: {{ .Values.labels.ovn_northd.node_selector_value }}
|
||||
initContainers:
|
||||
{{- tuple $envAll "ovn_northd" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||
containers:
|
||||
- name: ovn-northd
|
||||
{{ tuple $envAll "ovn_northd" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
command:
|
||||
- /tmp/start.sh
|
||||
- run-ovn-northd
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.server | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
volumeMounts:
|
||||
- name: ovn-bin
|
||||
mountPath: /tmp/start.sh
|
||||
subPath: ovn.sh
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: ovn-bin
|
||||
configMap:
|
||||
name: ovn-bin
|
||||
defaultMode: 0555
|
||||
{{- end }}
|
28
ovn/templates/service-nb-db.yaml
Normal file
28
ovn/templates/service-nb-db.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
{{/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.service_ovn_nb_db }}
|
||||
{{- $envAll := . }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ tuple "ovn-nb-db" "direct" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||
spec:
|
||||
ports:
|
||||
- name: ovn-nb-db
|
||||
port: {{ tuple "ovn-nb-db" "internal" "db" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
selector:
|
||||
{{ tuple $envAll "ovn" "ovn-nb-db" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||
{{- end }}
|
28
ovn/templates/service-sb-db.yaml
Normal file
28
ovn/templates/service-sb-db.yaml
Normal file
@ -0,0 +1,28 @@
|
||||
{{/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.service_ovn_sb_db }}
|
||||
{{- $envAll := . }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ tuple "ovn-sb-db" "direct" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||
spec:
|
||||
ports:
|
||||
- name: ovn-sb-db
|
||||
port: {{ tuple "ovn-sb-db" "internal" "db" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
selector:
|
||||
{{ tuple $envAll "ovn" "ovn-sb-db" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||
{{- end }}
|
85
ovn/templates/statefulset-nb-db.yaml
Normal file
85
ovn/templates/statefulset-nb-db.yaml
Normal file
@ -0,0 +1,85 @@
|
||||
{{/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.statefulset_ovn_nb_db }}
|
||||
{{- $envAll := . }}
|
||||
|
||||
{{- $serviceAccountName := "ovn-nb-db" }}
|
||||
{{ tuple $envAll "ovn_nb_db" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: ovn-nb-db
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||
labels:
|
||||
{{ tuple $envAll "ovn" "ovn-nb-db" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||
spec:
|
||||
serviceName: {{ tuple "ovn-nb-db" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
{{ tuple $envAll "ovn" "ovn-nb-db" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{ tuple $envAll "ovn" "ovn-nb-db" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
||||
spec:
|
||||
serviceAccountName: {{ $serviceAccountName }}
|
||||
affinity:
|
||||
{{- tuple $envAll "ovn" "ovn-nb-db" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }}
|
||||
nodeSelector:
|
||||
{{ .Values.labels.ovn_nb_db.node_selector_key }}: {{ .Values.labels.ovn_nb_db.node_selector_value }}
|
||||
initContainers:
|
||||
{{- tuple $envAll "ovn_nb_db" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||
containers:
|
||||
- name: ovn-nb-db
|
||||
{{ tuple $envAll "ovn_nb_db" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
ports:
|
||||
- containerPort: {{ tuple "ovn-nb-db" "internal" "db" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
command:
|
||||
- /tmp/start.sh
|
||||
- nb-ovsdb
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.server | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
volumeMounts:
|
||||
- name: ovn-bin
|
||||
mountPath: /tmp/start.sh
|
||||
subPath: ovn.sh
|
||||
readOnly: true
|
||||
- name: ovn-nb-db-data
|
||||
mountPath: /data/db
|
||||
volumes:
|
||||
- name: ovn-bin
|
||||
configMap:
|
||||
name: ovn-bin
|
||||
defaultMode: 0555
|
||||
{{- if not .Values.volume.ovn_nb_db.enabled }}
|
||||
- name: ovn-nb-db-data
|
||||
emptyDir: {}
|
||||
{{- else }}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: ovn-nb-db-data
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ $envAll.Values.volume.ovn_nb_db.size }}
|
||||
storageClassName: {{ $envAll.Values.volume.ovn_nb_db.class_name }}
|
||||
{{- end }}
|
||||
|
||||
{{- end }}
|
85
ovn/templates/statefulset-sb-db.yaml
Normal file
85
ovn/templates/statefulset-sb-db.yaml
Normal file
@ -0,0 +1,85 @@
|
||||
{{/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.statefulset_ovn_sb_db }}
|
||||
{{- $envAll := . }}
|
||||
|
||||
{{- $serviceAccountName := "ovn-sb-db" }}
|
||||
{{ tuple $envAll "ovn_sb_db" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: ovn-sb-db
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" }}
|
||||
labels:
|
||||
{{ tuple $envAll "ovn" "ovn-sb-db" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
|
||||
spec:
|
||||
serviceName: {{ tuple "ovn-sb-db" "internal" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
{{ tuple $envAll "ovn" "ovn-sb-db" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{ tuple $envAll "ovn" "ovn-sb-db" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
|
||||
annotations:
|
||||
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
|
||||
spec:
|
||||
serviceAccountName: {{ $serviceAccountName }}
|
||||
affinity:
|
||||
{{- tuple $envAll "ovn" "ovn-sb-db" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }}
|
||||
nodeSelector:
|
||||
{{ .Values.labels.ovn_sb_db.node_selector_key }}: {{ .Values.labels.ovn_sb_db.node_selector_value }}
|
||||
initContainers:
|
||||
{{- tuple $envAll "ovn_sb_db" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
|
||||
containers:
|
||||
- name: ovn-sb-db
|
||||
{{ tuple $envAll "ovn_sb_db" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||
ports:
|
||||
- containerPort: {{ tuple "ovn-sb-db" "internal" "db" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
command:
|
||||
- /tmp/start.sh
|
||||
- sb-ovsdb
|
||||
{{ tuple $envAll $envAll.Values.pod.resources.server | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||
volumeMounts:
|
||||
- name: ovn-bin
|
||||
mountPath: /tmp/start.sh
|
||||
subPath: ovn.sh
|
||||
readOnly: true
|
||||
- name: ovn-sb-db-data
|
||||
mountPath: /data/db
|
||||
volumes:
|
||||
- name: ovn-bin
|
||||
configMap:
|
||||
name: ovn-bin
|
||||
defaultMode: 0555
|
||||
{{- if not .Values.volume.ovn_sb_db.enabled }}
|
||||
- name: ovn-sb-db-data
|
||||
emptyDir: {}
|
||||
{{- else }}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: ovn-sb-db-data
|
||||
spec:
|
||||
accessModes: ["ReadWriteOnce"]
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ $envAll.Values.volume.ovn_sb_db.size }}
|
||||
storageClassName: {{ $envAll.Values.volume.ovn_sb_db.class_name }}
|
||||
{{- end }}
|
||||
|
||||
{{- end }}
|
284
ovn/values.yaml
Normal file
284
ovn/values.yaml
Normal file
@ -0,0 +1,284 @@
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# Default values for openvswitch.
|
||||
# This is a YAML-formatted file.
|
||||
# Declare name/value pairs to be passed into your templates.
|
||||
# name: value
|
||||
|
||||
---
|
||||
release_group: null
|
||||
|
||||
images:
|
||||
tags:
|
||||
ovn_nb_db: docker.io/openstackhelm/ovn:latest-ubuntu_focal
|
||||
ovn_sb_db: docker.io/openstackhelm/ovn:latest-ubuntu_focal
|
||||
ovn_northd: docker.io/openstackhelm/ovn:latest-ubuntu_focal
|
||||
ovn_controller: docker.io/openstackhelm/ovn:latest-ubuntu_focal
|
||||
dep_check: quay.io/airshipit/kubernetes-entrypoint:v1.0.0
|
||||
image_repo_sync: docker.io/library/docker:17.07.0
|
||||
pull_policy: "IfNotPresent"
|
||||
local_registry:
|
||||
active: false
|
||||
exclude:
|
||||
- dep_check
|
||||
- image_repo_sync
|
||||
|
||||
labels:
|
||||
ovn_nb_db:
|
||||
node_selector_key: openstack-network-node
|
||||
node_selector_value: enabled
|
||||
ovn_sb_db:
|
||||
node_selector_key: openstack-network-node
|
||||
node_selector_value: enabled
|
||||
ovn_northd:
|
||||
node_selector_key: openstack-network-node
|
||||
node_selector_value: enabled
|
||||
ovn_controller:
|
||||
node_selector_key: openvswitch
|
||||
node_selector_value: enabled
|
||||
|
||||
volume:
|
||||
ovn_nb_db:
|
||||
use_local_path:
|
||||
enabled: false
|
||||
host_path: /var/lib/rabbitmq
|
||||
chown_on_start: true
|
||||
enabled: true
|
||||
class_name: general
|
||||
size: 5Gi
|
||||
ovn_sb_db:
|
||||
use_local_path:
|
||||
enabled: false
|
||||
host_path: /var/lib/rabbitmq
|
||||
chown_on_start: true
|
||||
enabled: true
|
||||
class_name: general
|
||||
size: 5Gi
|
||||
|
||||
conf:
|
||||
ovn_cms_options: "enable-chassis-as-gw,availability-zones=nova"
|
||||
ovn_remote: tcp:ovn-sb-db.openstack.svc.cluster.local:6640
|
||||
ovn_encap_type: geneve
|
||||
ovn_bridge: br-int
|
||||
ovn_bridge_mappings: ""
|
||||
|
||||
# NOTE: should be same as nova.conf.use_fqdn.compute
|
||||
use_fqdn:
|
||||
compute: true
|
||||
|
||||
pod:
|
||||
tolerations:
|
||||
ovn_nb_db:
|
||||
enabled: false
|
||||
ovn_sb_db:
|
||||
enabled: false
|
||||
ovn_northd:
|
||||
enabled: false
|
||||
ovn_controller:
|
||||
enabled: false
|
||||
affinity:
|
||||
anti:
|
||||
type:
|
||||
default: preferredDuringSchedulingIgnoredDuringExecution
|
||||
topologyKey:
|
||||
default: kubernetes.io/hostname
|
||||
weight:
|
||||
default: 10
|
||||
|
||||
probes:
|
||||
# TODO: Add healthchecks
|
||||
dns_policy: "ClusterFirstWithHostNet"
|
||||
lifecycle:
|
||||
upgrades:
|
||||
daemonsets:
|
||||
pod_replacement_strategy: RollingUpdate
|
||||
ovn_nb_db:
|
||||
enabled: true
|
||||
min_ready_seconds: 0
|
||||
max_unavailable: 1
|
||||
ovn_sb_db:
|
||||
enabled: true
|
||||
min_ready_seconds: 0
|
||||
max_unavailable: 1
|
||||
ovn_northd:
|
||||
enabled: true
|
||||
min_ready_seconds: 0
|
||||
max_unavailable: 1
|
||||
ovn_controller:
|
||||
enabled: true
|
||||
min_ready_seconds: 0
|
||||
max_unavailable: 1
|
||||
resources:
|
||||
enabled: false
|
||||
ovs:
|
||||
ovn_nb_db:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
ovn_sb_db:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
ovn_northd:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
ovn_controller:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
jobs:
|
||||
image_repo_sync:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
|
||||
secrets:
|
||||
oci_image_registry:
|
||||
ovn_nb_db: ovn-nb-db-oci-image-registry-key
|
||||
ovn_sb_db: ovn-sb-db-oci-image-registry-key
|
||||
ovn_northd: ovn-northd-oci-image-registry-key
|
||||
ovn_controller: ovn-controller-oci-image-registry-key
|
||||
|
||||
# TODO: Check these endpoints?!
|
||||
endpoints:
|
||||
cluster_domain_suffix: cluster.local
|
||||
local_image_registry:
|
||||
name: docker-registry
|
||||
namespace: docker-registry
|
||||
hosts:
|
||||
default: localhost
|
||||
internal: docker-registry
|
||||
node: localhost
|
||||
host_fqdn_override:
|
||||
default: null
|
||||
port:
|
||||
registry:
|
||||
node: 5000
|
||||
oci_image_registry:
|
||||
name: oci-image-registry
|
||||
namespace: oci-image-registry
|
||||
auth:
|
||||
enabled: false
|
||||
openvswitch:
|
||||
username: openvswitch
|
||||
password: password
|
||||
hosts:
|
||||
default: localhost
|
||||
host_fqdn_override:
|
||||
default: null
|
||||
port:
|
||||
registry:
|
||||
default: null
|
||||
ovn_nb_db:
|
||||
name: ovn-nb-db
|
||||
namespace: null
|
||||
hosts:
|
||||
default: ovn-nb-db
|
||||
host_fqdn_override:
|
||||
default: null
|
||||
port:
|
||||
db:
|
||||
default: 6640
|
||||
ovn_sb_db:
|
||||
name: ovn-sb-db
|
||||
namespace: null
|
||||
hosts:
|
||||
default: ovn-sb-db
|
||||
host_fqdn_override:
|
||||
default: null
|
||||
port:
|
||||
db:
|
||||
default: 6640
|
||||
|
||||
network_policy:
|
||||
ovn_nb_db:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
ovn_sb_db:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
ovn_northd:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
ovn_controller:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
|
||||
dependencies:
|
||||
dynamic:
|
||||
common:
|
||||
local_image_registry:
|
||||
jobs:
|
||||
- openvswitch-image-repo-sync
|
||||
services:
|
||||
- endpoint: node
|
||||
service: local_image_registry
|
||||
static:
|
||||
ovn_nb_db: null
|
||||
ovn_sb_db: null
|
||||
ovn_northd:
|
||||
services:
|
||||
- endpoint: internal
|
||||
service: ovn-nb-db
|
||||
- endpoint: internal
|
||||
service: ovn-sb-db
|
||||
ovn_controller:
|
||||
services:
|
||||
- endpoint: internal
|
||||
service: ovn-sb-db
|
||||
pod:
|
||||
- requireSameNode: true
|
||||
labels:
|
||||
application: openvswitch
|
||||
component: server
|
||||
image_repo_sync:
|
||||
services:
|
||||
- endpoint: internal
|
||||
service: local_image_registry
|
||||
|
||||
manifests:
|
||||
configmap_bin: true
|
||||
deployment_northd: true
|
||||
daemonset_controller: true
|
||||
service_ovn_nb_db: true
|
||||
service_ovn_sb_db: true
|
||||
statefulset_ovn_nb_db: true
|
||||
statefulset_ovn_sb_db: true
|
||||
deployment_ovn_northd: true
|
||||
daemonset_ovn_controller: true
|
||||
job_image_repo_sync: true
|
||||
...
|
@ -40,6 +40,7 @@ sections:
|
||||
- [namespace-config, namespace-config Chart]
|
||||
- [nfs-provisioner, nfs-provisioner Chart]
|
||||
- [openvswitch, openvswitch Chart]
|
||||
- [ovn, ovn Chart]
|
||||
- [podsecuritypolicy, podsecuritypolicy Chart]
|
||||
- [postgresql, postgresql Chart]
|
||||
- [powerdns, powerdns Chart]
|
||||
|
@ -17,4 +17,5 @@ libvirt:
|
||||
- 0.1.14 Remove use of exec in libvirt.sh
|
||||
- 0.1.15 Add support for libvirt to connect to external ceph without any local ceph present
|
||||
- 0.1.16 Update all Ceph images to Focal
|
||||
- 0.1.17 Add ovn.yaml values_override, remove dependency from neutron-ovs-agent module
|
||||
...
|
||||
|
@ -11,4 +11,6 @@ openvswitch:
|
||||
- 0.1.8 Added OCI registry authentication
|
||||
- 0.1.9 Enable ovs hardware offload
|
||||
- 0.1.10 Merge ovs-db and ovs-vswitchd in one Daemonset
|
||||
- 0.1.11 Add ovn.yaml in values_override, Enable ptcp_port 6640 which needed when use ovn
|
||||
|
||||
...
|
||||
|
5
releasenotes/notes/ovn.yaml
Normal file
5
releasenotes/notes/ovn.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
ovn:
|
||||
- 0.1.0 Add OVN!
|
||||
|
||||
...
|
Loading…
Reference in New Issue
Block a user