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 2 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: argocd
spec:
destination:
namespace: deployai
Copy link
Collaborator

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.

Copy link
Author

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 '-')

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: argocd
spec:
destination:
namespace: david-tutorial
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is different to the namespace you create (underscore)

Copy link
Author

Choose a reason for hiding this comment

The 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
13 changes: 13 additions & 0 deletions aws/david_tutorial/trust/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

22 changes: 22 additions & 0 deletions aws/david_tutorial/trust/mongodb/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
mongodb:

auth:
enabled: true
existingSecret: mongodb-secret
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The 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."

Copy link
Author

Choose a reason for hiding this comment

The 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
12 changes: 12 additions & 0 deletions aws/david_tutorial/trust/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/trust/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-trust
Copy link
Collaborator

Choose a reason for hiding this comment

The 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.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed to 'mongodb-david-tutorial'

user: root
existingSecret:
name: mongodb-secret
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This secret does not exist, see above

Copy link
Author

Choose a reason for hiding this comment

The 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"
}
}
}
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