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

Added loxiLb chart #6

Open
wants to merge 2 commits into
base: main
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
20 changes: 20 additions & 0 deletions charts/loxilb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v2
name: loxilb
description: A Helm chart for loxilb
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.0.1
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 0.7.0
44 changes: 44 additions & 0 deletions charts/loxilb/templates/loxilb-nad.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#
# Software Name : Saviah5GC-helm
# SPDX-FileCopyrightText: Copyright (c) 2023 Saviah
# SPDX-License-Identifier: Apache-2.0
#
# This software is distributed under the Apache License 2.0,
# the text of which is available at https://github.com/free5gc/free5gc-helm/blob/main/LICENSE
# or see the "LICENSE" file for more details.
#
# Author: Ian Chen
# Software description: An open-source project providing Helm charts to deploy 5G components (Core + RAN) on top of Kubernetes
#
apiVersion: k8s.cni.cncf.io/v1
kind: NetworkAttachmentDefinition
metadata:
name: n2network-lb
annotations:
k8s.v1.cni.cncf.io/resourceName: intel.com/pci_sriov_net_N2
spec:
config: |-
{
"cniVersion": "0.3.1",
"name": "n2network-lb",
"plugins": [
{
"type": "sriov",
"capabilities": { "ips": true },
"spoofchk": "off",
"trust": "on",
"ipam": {
"type": "static",
"routes": [
{
"dst": "0.0.0.0/0",
"gw": "192.168.1.254"
}
]
}
}, {
"capabilities": { "mac": true },
"type": "tuning"
}
]
}
71 changes: 71 additions & 0 deletions charts/loxilb/templates/loxilb-statefulset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#
# Software Name : Saviah5GC-helm
# SPDX-FileCopyrightText: Copyright (c) 2023 Saviah
# SPDX-License-Identifier: Apache-2.0
#
# This software is distributed under the Apache License 2.0,
# the text of which is available at https://github.com/free5gc/free5gc-helm/blob/main/LICENSE
# or see the "LICENSE" file for more details.
#
# Author: Ian Chen
# Software description: An open-source project providing Helm charts to deploy 5G components (Core + RAN) on top of Kubernetes
#
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}
labels:
app: loxilb
spec:
ports:
- port: 8091
name: restapi-one
- port: 11111
name: restapi-two
clusterIP: None
selector:
app: loxilb
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
labels:
app: loxilb
name: {{ .Release.Name }}
spec:
serviceName: {{ .Release.Name }}
podManagementPolicy: Parallel
replicas: 1
selector:
matchLabels:
app: loxilb
template:
metadata:
annotations:
k8s.v1.cni.cncf.io/networks: '[
{
"name": "n2network-lb",
"ips": [ "{{ .Values.loxilb.ip }}/24" ],
"gateway": [ "192.168.1.254" ]
}
]'
labels:
app: loxilb
spec:
containers:
- name: loxilb
image: "{{ .Values.loxilb.image.repository }}:{{ .Values.loxilb.image.tag }}"
imagePullPolicy: {{ .Values.loxilb.image.pullPolicy }}
lifecycle:
postStart:
exec:
command: [ "/bin/bash","-c","sleep 10; for i in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $i; done; {{ .Values.loxilb.clientStartCmd }}" ]
ports:
- containerPort: 8091
name: restapi-one
- containerPort: 11111
name: restapi-two
resources:
{{- toYaml .Values.loxilb.resources | nindent 12 }}
securityContext:
privileged: true
15 changes: 15 additions & 0 deletions charts/loxilb/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
loxilb:
ip: 192.168.1.18
image:
repository: localhost:32000/loxilb
pullPolicy: Always
tag: "latest"
clientStartCmd:
"loxicmd create endpoint 192.168.1.10 --desc=192.168.1.10 --probetype=ping --probeport=38412 --period=5 --retries=3;\
loxicmd create endpoint 192.168.1.11 --desc=192.168.1.11 --probetype=ping --probeport=38412 --period=5 --retries=3;\
loxicmd create lb 20.20.20.1 --select=priority --monitor --sctp=38412:38412 --endpoints=192.168.1.10:100,192.168.1.11:1 --mode=onearm"
resources:
limits:
intel.com/pci_sriov_net_N2: "1"
requests:
intel.com/pci_sriov_net_N2: "1"
Binary file removed repo/free5gc-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-0.1.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-1.0.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-1.0.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-1.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-1.1.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-1.1.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-1.1.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-1.1.5.tgz
Binary file not shown.
Binary file removed repo/free5gc-1.1.6.tgz
Binary file not shown.
Binary file removed repo/free5gc-1.1.7.tgz
Binary file not shown.
Binary file removed repo/free5gc-amf-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-amf-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-amf-0.2.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-amf-0.2.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-amf-0.2.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-amf-0.2.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-amf-0.2.5.tgz
Binary file not shown.
Binary file removed repo/free5gc-amf-0.2.6.tgz
Binary file not shown.
Binary file removed repo/free5gc-amf-0.2.7.tgz
Binary file not shown.
Binary file removed repo/free5gc-ausf-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-ausf-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-ausf-0.2.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-ausf-0.2.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-ausf-0.2.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-ausf-0.2.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-ausf-0.2.5.tgz
Binary file not shown.
Binary file removed repo/free5gc-ausf-0.2.6.tgz
Binary file not shown.
Binary file removed repo/free5gc-ausf-0.2.7.tgz
Binary file not shown.
Binary file removed repo/free5gc-dbpython-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-n3iwf-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-n3iwf-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-n3iwf-0.2.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-n3iwf-0.2.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-n3iwf-0.2.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-n3iwf-0.2.5.tgz
Binary file not shown.
Binary file removed repo/free5gc-nrf-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-nrf-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-nrf-0.2.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-nrf-0.2.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-nrf-0.2.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-nrf-0.2.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-nrf-0.2.5.tgz
Binary file not shown.
Binary file removed repo/free5gc-nrf-0.2.6.tgz
Binary file not shown.
Binary file removed repo/free5gc-nrf-0.2.7.tgz
Binary file not shown.
Binary file removed repo/free5gc-nssf-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-nssf-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-nssf-0.2.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-nssf-0.2.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-nssf-0.2.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-nssf-0.2.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-nssf-0.2.5.tgz
Binary file not shown.
Binary file removed repo/free5gc-nssf-0.2.6.tgz
Binary file not shown.
Binary file removed repo/free5gc-nssf-0.2.7.tgz
Binary file not shown.
Binary file removed repo/free5gc-pcf-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-pcf-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-pcf-0.2.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-pcf-0.2.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-pcf-0.2.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-pcf-0.2.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-pcf-0.2.5.tgz
Binary file not shown.
Binary file removed repo/free5gc-pcf-0.2.6.tgz
Binary file not shown.
Binary file removed repo/free5gc-pcf-0.2.7.tgz
Binary file not shown.
Binary file removed repo/free5gc-smf-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-smf-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-smf-0.1.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-smf-0.2.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-smf-0.2.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-smf-0.2.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-smf-0.2.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-smf-0.2.5.tgz
Binary file not shown.
Binary file removed repo/free5gc-smf-0.2.6.tgz
Binary file not shown.
Binary file removed repo/free5gc-smf-0.2.7.tgz
Binary file not shown.
Binary file removed repo/free5gc-udm-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-udm-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-udm-0.2.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-udm-0.2.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-udm-0.2.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-udm-0.2.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-udm-0.2.5.tgz
Binary file not shown.
Binary file removed repo/free5gc-udm-0.2.6.tgz
Binary file not shown.
Binary file removed repo/free5gc-udm-0.2.7.tgz
Binary file not shown.
Binary file removed repo/free5gc-udr-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-udr-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-udr-0.2.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-udr-0.2.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-udr-0.2.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-udr-0.2.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-udr-0.2.5.tgz
Binary file not shown.
Binary file removed repo/free5gc-udr-0.2.6.tgz
Binary file not shown.
Binary file removed repo/free5gc-udr-0.2.7.tgz
Binary file not shown.
Binary file removed repo/free5gc-upf-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-upf-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-upf-0.1.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-upf-0.2.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-upf-0.2.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-upf-0.2.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-upf-0.2.5.tgz
Binary file not shown.
Binary file removed repo/free5gc-upf-0.2.6.tgz
Binary file not shown.
Binary file removed repo/free5gc-webui-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gc-webui-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gc-webui-0.1.2.tgz
Binary file not shown.
Binary file removed repo/free5gc-webui-0.1.3.tgz
Binary file not shown.
Binary file removed repo/free5gc-webui-0.1.4.tgz
Binary file not shown.
Binary file removed repo/free5gc-webui-0.1.5.tgz
Binary file not shown.
Binary file removed repo/free5gcControlPlane-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gcControlPlane-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gcControlPlane-0.1.2.tgz
Binary file not shown.
Binary file removed repo/free5gcN3iwf-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gcN3iwf-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gcN3iwf-0.1.2.tgz
Binary file not shown.
Binary file removed repo/free5gcUserPlane-0.1.0.tgz
Binary file not shown.
Binary file removed repo/free5gcUserPlane-0.1.1.tgz
Binary file not shown.
Binary file removed repo/free5gcUserPlane-0.1.2.tgz
Binary file not shown.
Loading
Loading