Skip to content

Commit

Permalink
Merge "ICS producer-consumer sample app Helm chart"
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnKeeneyEST authored and Gerrit Code Review committed May 14, 2024
2 parents 3a4561d + 99728ce commit 46f5295
Show file tree
Hide file tree
Showing 10 changed files with 266 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: ics-consumer
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "1.16.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#
# ========================LICENSE_START=================================
# O-RAN-SC
#
# Copyright (C) 2024: OpenInfra Foundation Europe
#
# 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.
# ========================LICENSE_END===================================
#
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.consumer.name }}
spec:
replicas: {{ .Values.consumer.replicaCount }}
selector:
matchLabels:
app: {{ .Values.consumer.name }}
template:
metadata:
labels:
app: {{ .Values.consumer.name }}
spec:
containers:
- name: {{ .Values.consumer.name }}
image: "{{ .Values.consumer.image.repository }}:{{ .Values.consumer.image.tag }}"
ports:
- containerPort: {{ .Values.consumer.service.port }}
env:
- name: KAFKA_SERVERS
value: "{{ .Values.kafka.host }}:{{ .Values.kafka.port }}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# ========================LICENSE_START=================================
# O-RAN-SC
#
# Copyright (C) 2024: OpenInfra Foundation Europe
#
# 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.
# ========================LICENSE_END===================================
#
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.consumer.name }}
spec:
type: NodePort
ports:
- port: {{ .Values.consumer.service.port }}
targetPort: {{ .Values.consumer.service.port }}
nodePort: {{ .Values.consumer.service.nodePort }}
selector:
app: {{ .Values.consumer.name }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# ========================LICENSE_START=================================
# O-RAN-SC
#
# Copyright (C) 2024: OpenInfra Foundation Europe
#
# 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.
# ========================LICENSE_END===================================
#
consumer:
name: kafka-consumer
replicaCount: 1
image:
repository: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-sample-icsconsumer
tag: 0.0.1
service:
port: 8081
nodePort: 30081

kafka:
host: kafka-service
port: 9092
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: ics-producer
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "1.16.0"
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#
# ========================LICENSE_START=================================
# O-RAN-SC
#
# Copyright (C) 2024: OpenInfra Foundation Europe
#
# 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.
# ========================LICENSE_END===================================
#
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.producer.name }}
spec:
replicas: {{ .Values.producer.replicaCount }}
selector:
matchLabels:
app: {{ .Values.producer.name }}
template:
metadata:
labels:
app: {{ .Values.producer.name }}
spec:
containers:
- name: {{ .Values.producer.name }}
image: "{{ .Values.producer.image.repository }}:{{ .Values.producer.image.tag }}"
ports:
- containerPort: {{ .Values.producer.service.port }}
env:
- name: KAFKA_SERVERS
value: "{{ .Values.kafka.host }}:{{ .Values.kafka.port }}"
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# ========================LICENSE_START=================================
# O-RAN-SC
#
# Copyright (C) 2024: OpenInfra Foundation Europe
#
# 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.
# ========================LICENSE_END===================================
#
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.producer.name }}
spec:
type: NodePort
ports:
- port: {{ .Values.producer.service.port }}
targetPort: {{ .Values.producer.service.port }}
nodePort: {{ .Values.producer.service.nodePort }}
selector:
app: {{ .Values.producer.name }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#
# ========================LICENSE_START=================================
# O-RAN-SC
#
# Copyright (C) 2024: OpenInfra Foundation Europe
#
# 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.
# ========================LICENSE_END===================================
#
producer:
name: kafka-producer
replicaCount: 1
image:
repository: nexus3.o-ran-sc.org:10004/o-ran-sc/nonrtric-sample-icsproducer
tag: 0.0.1
service:
port: 8080
nodePort: 30080

kafka:
host: kafka-service
port: 9092

0 comments on commit 46f5295

Please sign in to comment.