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

Testing tutorial #50

Open
wants to merge 6 commits 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
18 changes: 18 additions & 0 deletions aws/apps/david-tutorial/mongodb/mongodb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mongodb-david-tutorial
namespace: david-tutorial
spec:
destination:
namespace: david-tutorial
server: https://kubernetes.default.svc
project: default
source:
path: aws/david-tutorial/mongodb
repoURL: https://github.com/FIWARE-Ops/fiware-gitops
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
18 changes: 18 additions & 0 deletions aws/apps/david-tutorial/orion-ld/orion-ld.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: orion-ld-david-tutorial
namespace: david-tutorial
spec:
destination:
namespace: david-tutorial
server: https://kubernetes.default.svc
project: default
source:
path: aws/david-tutorial/orion-ld
repoURL: https://github.com/FIWARE-Ops/fiware-gitops
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
13 changes: 13 additions & 0 deletions aws/david-tutorial/mongodb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v2
name: mongodb
description: Chart holder for argo-cd

type: application
version: 0.1.0
appVersion: "4.4.12"

dependencies:
- name: mongodb
version: 11.0.4
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami

21 changes: 21 additions & 0 deletions aws/david-tutorial/mongodb/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
mongodb:
auth:
enabled: true
existingSecret: mongodb-secret

architecture: standalone

podSecurityContext:
enabled: false

containerSecurityContext:
enabled: false

resources:
limits:
cpu: 200m
memory: 512Mi

persistence:
enabled: true
size: 1Gi
12 changes: 12 additions & 0 deletions aws/david-tutorial/orion-ld/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v2
name: orion-ld
description: Chart holder for argo-cd

type: application
version: 1.2.6
appVersion: "1.1.0"

dependencies:
- name: orion
version: 1.2.6
repository: https://fiware.github.io/helm-charts
100 changes: 100 additions & 0 deletions aws/david-tutorial/orion-ld/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
orion:
deployment:
image:
tag: 1.1.0
broker:
logging:
level: DEBUG
db:
auth:
user: root
mech: "SCRAM-SHA-1"
hosts:
- mongodb-david-tutorial
user: root
existingSecret:
name: mongodb-secret
key: mongodb-root-password
mongo:
# we want to use the individually deployed mongodb
enabled: false
initData:
initEnabled: true
hook: post-install, post-upgrade
entities:
- name: "onboarding.david-tutorial.fiware.dev"
data: |
{
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
"id": "urn:ngsi-ld:TrustedIssuer:did:web:onboarding.david-tutorial.fiware.dev",
"type": "TrustedIssuer",
"issuer": {
"type": "Property",
"value": "did:web:onboarding.david-tutorial.fiware.dev"
},
"selfDescription": {
"type": "Property",
"value": {
"id": "did:web:onboarding.david-tutorial.fiware.dev",
"type": "gx:LegalParticipant",
"gx:legalName": "david-tutorial Marketplace Onboarding Service"
}
}
}
- name: "marketplace.david-tutorial.fiware.dev"
data: |
{
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
"id": "urn:ngsi-ld:TrustedIssuer:did:web:marketplace.david-tutorial.fiware.dev",
"type": "TrustedIssuer",
"issuer": {
"type": "Property",
"value": "did:web:marketplace.david-tutorial.fiware.dev"
},
"selfDescription": {
"type": "Property",
"value": {
"id": "did:web:marketplace.david-tutorial.fiware.dev",
"type": "gx:LegalParticipant",
"gx:legalName": "david-tutorial Marketplace"
}
}
}
- name: "provider.david-tutorial.fiware.dev"
data: |
{
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
"id": "urn:ngsi-ld:TrustedIssuer:did:web:provider.david-tutorial.fiware.dev",
"type": "TrustedIssuer",
"issuer": {
"type": "Property",
"value": "did:web:provider.david-tutorial.fiware.dev"
},
"selfDescription": {
"type": "Property",
"value": {
"id": "did:web:provider.david-tutorial.fiware.dev",
"type": "gx:LegalParticipant",
"gx:legalName": "david-tutorial Provider"
}
}
}
- name: "consumer.david-tutorial.fiware.dev"
data: |
{
"@context": "https://uri.etsi.org/ngsi-ld/v1/ngsi-ld-core-context.jsonld",
"id": "urn:ngsi-ld:TrustedIssuer:did:web:consumer.david-tutorial.fiware.dev",
"type": "TrustedIssuer",
"issuer": {
"type": "Property",
"value": "did:web:consumer.david-tutorial.fiware.dev"
},
"selfDescription": {
"type": "Property",
"value": {
"id": "did:web:consumer.david-tutorial.fiware.dev",
"type": "gx:LegalParticipant",
"gx:legalName": "david-tutorial Consumer"
}
}
}
17 changes: 17 additions & 0 deletions aws/david-tutorial/secrets/mongodb-sealed-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: mongodb-secret
namespace: david-tutorial
spec:
encryptedData:
mongodb-password: AgB5mz60H9wRgK382yFBFGO+kbhhCF88O1MkoTT+c3ZlWwv+D0DVpFBdEprPUpCD5S/ac2fwpq9HJDgs9Qd0t3wrT2R0J2mUJ13Rd4t6ACsvMeQw4vnRUa4aB+PhAGKPWgfD7ZRfk+fkA7bLGQr70vs2pPSwtu62U6J64dHLfCCZ36ls3tv8PcY7ocjJjDZHZgmUNo9w863Ee6vAaC5AEzjim71hA9ZeZCml6IdCDWo1Bv57pvnLCZ/vEGa80wxtqm+H2QAUz1QBUFS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h0+RMx/UGs8ux2PJo6+jI6tZ2bMCI+xnz1hdobuzEeGvVrMAxwyVWD20Xe3xlThp1WVKRaYSXAXWE4pu+9uL1JgAvr+md9q5UKmpOrxLDyEwrHXE3S4gor2jVSj
mongodb-root-password: AgCe4zVyfOllkXzUn1pNDXwaVbsrWjlEe/ya+cG3ZXGzlTCjxlGCDV7hclGyTFBVmHLwOwi4bPT3P1GkQMRTspCWP8/Ib1BUubozdh8oYfX7rhqVzxns6oMDZf5lvQkO4B3V7xWgT2wDslMALpqJZSuqhMtq7w809YibP7I6HLdihP+H7BpB8ep9zE/V7VRf75A3egzWJ8QmrcDkRlrLp4V6/jmJs/GxxHG0cohFZaRzZWldX9+ipbTEe9Lpf/cZ47bhmo9bymM4JeQxgAZGVOWWtfjV3Dyimvk/w473Nmd3JVZPYvZIJ5h8jrqAblWsQQqUB3T88Inko0MSzfVij85e0UA43ERntfH96EGyeRrL4iMlFXIb89uLtq/f5ELYmp4MOJW8PjvrlL9vPoyw2InDaHnmmmG01VWJ9cRiBamSq3+3xkvGnDkHYzaUGTCg5A9P7OuIve4g43uQLhQvk3W7pt0z443DXEhJn2H1mRUezscGmUZ+8hm8/VsWFgqoiPlEexdiiiP7Lc29vk5O3sb8a6pWQU6Tecr1+3qLWTovk3kmw6xrHRVq6KkLbCNIeMAM+YUhOsD7k79o0ihhUZeXAa1S19z07xggeEnF87nQAa5LDfoDPOXenOMluYkkZaeiREk/Abb/GtpTEHX65mnxmo12J5uwwq+qW0H7OBPkH6CV6uluclGxYaZn0Op1NiwANl8kYONCLmikkiJYO+gK
template:
metadata:
creationTimestamp: null
name: mongodb-secret
namespace: david-tutorial
4 changes: 4 additions & 0 deletions aws/namespaces/david-tutorial.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: david-tutorial