-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: master
Are you sure you want to change the base?
Testing tutorial #50
Changes from 2 commits
2d9b48b
f92300a
0d411fc
6c83529
2a91083
53a3dd3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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: argocd | ||
spec: | ||
destination: | ||
namespace: deployai | ||
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 |
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: argocd | ||
spec: | ||
destination: | ||
namespace: david-tutorial | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is different to the namespace you create (underscore) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed to '-' to have the style compliant with the one used in other apps. |
||
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 |
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 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
mongodb: | ||
|
||
auth: | ||
enabled: true | ||
existingSecret: mongodb-secret | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You also need to create the secrets. Also see https://github.com/FIWARE-Ops/fiware-gitops?tab=readme-ov-file#8-create-secrets There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've tried but I think I'm doing something wrong. I receive the message: "error: cannot get sealed secret service: Unauthorized." There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. solved and pushed |
||
|
||
architecture: standalone | ||
|
||
podSecurityContext: | ||
enabled: false | ||
|
||
containerSecurityContext: | ||
enabled: false | ||
|
||
resources: | ||
limits: | ||
cpu: 200m | ||
memory: 512Mi | ||
|
||
persistence: | ||
enabled: true | ||
size: 1Gi |
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 |
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-trust | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The mongo will not be available under this hostname. If you don't specify to override the name automatically given by helm/argo, it will most likely be the name you specified in the mongodb argocd application. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed to 'mongodb-david-tutorial' |
||
user: root | ||
existingSecret: | ||
name: mongodb-secret | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This secret does not exist, see above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've pushed the 'sealed' secret. Is this the one that is needed? |
||
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" | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: david_tutorial |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to set the target namespace, otherwise argo does not know where to deploy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to my namespace: david-tutorial (changed as well '_' to '-')