forked from pedrocjdpereira/osm-mec
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
helm chart + many changes mostly bugs
- Loading branch information
1 parent
6ea13aa
commit 6b0286e
Showing
23 changed files
with
331 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ FROM node:14 | |
|
||
WORKDIR /usr/app | ||
|
||
COPY . /usr/app | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: osm-mec | ||
description: A Helm chart for OSM-MEC project | ||
version: 0.0.1 | ||
apiVersion: v1 | ||
keywords: | ||
- osm-mec | ||
sources: | ||
home: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This chart was created by Kompose |
12 changes: 12 additions & 0 deletions
12
osm-mec-helm-chart/templates/app-mongo-db-data-persistentvolumeclaim.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
labels: | ||
app: app-mongo-db-data | ||
name: app-mongo-db-data | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 100Mi |
12 changes: 12 additions & 0 deletions
12
osm-mec-helm-chart/templates/cfs-portal-claim0-persistentvolumeclaim.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
labels: | ||
app: cfs-portal-claim0 | ||
name: cfs-portal-claim0 | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 100Mi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: cfs-portal | ||
name: cfs-portal | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: cfs-portal | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: cfs-portal | ||
spec: | ||
containers: | ||
- env: | ||
- name: CHOKIDAR_USEPOLLING | ||
value: "true" | ||
image: localhost:5000/cfs-portal:latest | ||
imagePullPolicy: Always | ||
name: cfs-portal | ||
ports: | ||
- containerPort: 3000 | ||
protocol: TCP | ||
restartPolicy: Always | ||
volumes: | ||
- name: cfs-portal-claim0 | ||
persistentVolumeClaim: | ||
claimName: cfs-portal-claim0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: cfs-portal | ||
name: cfs-portal | ||
spec: | ||
type: NodePort | ||
ports: | ||
- name: "3000" | ||
port: 3000 | ||
targetPort: 3000 | ||
nodePort: 30000 | ||
selector: | ||
app: cfs-portal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: meao | ||
name: meao | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: meao | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: meao | ||
spec: | ||
containers: | ||
- env: | ||
- name: KAFKA_BOOTSTRAP_SERVERS | ||
value: 10.255.32.88:14000 | ||
- name: MONGO_PASSWORD | ||
value: pass | ||
- name: MONGO_USER | ||
value: root | ||
- name: OSM_HOSTNAME | ||
value: 10.255.32.88:9999 | ||
image: localhost:5000/meao:latest | ||
imagePullPolicy: Always | ||
name: meao | ||
restartPolicy: Always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: mongo | ||
name: mongo | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mongo | ||
strategy: | ||
type: Recreate | ||
template: | ||
metadata: | ||
labels: | ||
app: mongo | ||
spec: | ||
containers: | ||
- env: | ||
- name: MONGO_INITDB_ROOT_PASSWORD | ||
value: pass | ||
- name: MONGO_INITDB_ROOT_USERNAME | ||
value: root | ||
image: mongo | ||
name: mongo | ||
volumeMounts: | ||
- mountPath: /data/db | ||
name: app-mongo-db-data | ||
restartPolicy: Always | ||
volumes: | ||
- name: app-mongo-db-data | ||
persistentVolumeClaim: | ||
claimName: app-mongo-db-data |
32 changes: 32 additions & 0 deletions
32
osm-mec-helm-chart/templates/mongo-express-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: mongo-express | ||
name: mongo-express | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mongo-express | ||
template: | ||
metadata: | ||
labels: | ||
app: mongo-express | ||
spec: | ||
containers: | ||
- env: | ||
- name: ME_CONFIG_MONGODB_ADMINPASSWORD | ||
value: pass | ||
- name: ME_CONFIG_MONGODB_ADMINUSERNAME | ||
value: root | ||
- name: ME_CONFIG_MONGODB_ENABLE_ADMIN | ||
value: "true" | ||
- name: ME_CONFIG_MONGODB_URL | ||
value: mongodb://root:pass@mongo:27017/ | ||
image: mongo-express | ||
name: mongo-express | ||
ports: | ||
- containerPort: 8081 | ||
protocol: TCP | ||
restartPolicy: Always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: mongo-express | ||
name: mongo-express | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- name: "8081" | ||
port: 8081 | ||
targetPort: 8081 | ||
selector: | ||
app: mongo-express |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: mongo | ||
name: mongo | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- name: "27017" | ||
port: 27017 | ||
targetPort: 27017 | ||
selector: | ||
app: mongo |
Oops, something went wrong.