Skip to content

Commit

Permalink
move into separate kustomization files to scale better
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Dec 1, 2024
1 parent 136f4e0 commit e0080c2
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 36 deletions.
3 changes: 3 additions & 0 deletions base/agent/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
namespace: kerberos-agent
resources:
- kerberos-agent-deployment.yaml
1 change: 0 additions & 1 deletion base/factory/kerberos-factory-clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
namespace: kerberos-factory
metadata:
name: pods-list
rules:
Expand Down
1 change: 0 additions & 1 deletion base/factory/kerberos-factory-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apiVersion: apps/v1
kind: Deployment
namespace: kerberos-factory
metadata:
name: factory
spec:
Expand Down
1 change: 0 additions & 1 deletion base/factory/kerberos-factory-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# If so uncomment the LoadBalancer service below and comment the NodePort service.
apiVersion: v1
kind: Service
namespace: kerberos-factory
metadata:
name: factory-nodeport
labels:
Expand Down
6 changes: 6 additions & 0 deletions base/factory/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace: kerberos-factory
resources:
- ../mongodb/mongodb-configmap.yaml
- kerberos-factory-deployment.yaml
- kerberos-factory-service.yaml
- kerberos-factory-clusterrole.yaml
4 changes: 4 additions & 0 deletions base/hub/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace: kerberos-hub
resources:
- kerberos-hub-nodeports.yaml
- kerberos-hub-import-database-job.yaml
12 changes: 4 additions & 8 deletions base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
resources:
- namespaces.yaml
- prometheus/base.yaml
- mongodb/mongodb-configmap.yaml
- factory/kerberos-factory-deployment.yaml
- factory/kerberos-factory-service.yaml
- factory/kerberos-factory-clusterrole.yaml
- vault/kerberos-vault-deployment.yaml
- vault/kerberos-vault-service.yaml
- hub/kerberos-hub-nodeports.yaml
- hub/kerberos-hub-import-database-job.yaml
- agent
- factory
- vault
- hub
24 changes: 1 addition & 23 deletions base/mongodb/mongodb-configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
apiVersion: v1
kind: ConfigMap
namespace: kerberos-factory
metadata:
name: mongodb
data:
Expand All @@ -17,24 +15,4 @@ data:
MONGODB_HOST: "mongodb.mongodb"
MONGODB_DATABASE_CREDENTIALS: "admin"
MONGODB_USERNAME: "root"
MONGODB_PASSWORD: "yourpassword"
---
apiVersion: v1
kind: ConfigMap
namespace: kerberos-vault
metadata:
name: mongodb
data:
# This is the mongodb database where data will be stored, you might use a different name if you want.
MONGODB_DATABASE_STORAGE: "KerberosStorage"
MONGODB_DATABASE_FACTORY: "KerberosFactory"
MONGODB_DATABASE_HUB: "Kerberos"
# MongoDB URI (for example for a SaaS service like MongoDB Atlas)
# If uri is set, the below properties are not used (host, adminDatabase, username, password)
#MONGODB_URI: "mongodb+srv://xx:[email protected]/?retryWrites=true&w=majority&appName=xxx"

# If you do not wish to use the URI, you can specify the individual values.
MONGODB_HOST: "mongodb.mongodb"
MONGODB_DATABASE_CREDENTIALS: "admin"
MONGODB_USERNAME: "root"
MONGODB_PASSWORD: "yourpassword"
MONGODB_PASSWORD: "yourpassword"
1 change: 0 additions & 1 deletion base/vault/kerberos-vault-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
apiVersion: apps/v1
kind: Deployment
namespace: kerberos-vault
metadata:
name: vault
spec:
Expand Down
1 change: 0 additions & 1 deletion base/vault/kerberos-vault-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# If so uncomment the LoadBalancer service below and comment the NodePort service.
apiVersion: v1
kind: Service
namespace: kerberos-vault
metadata:
name: vault-nodeport
labels:
Expand Down
5 changes: 5 additions & 0 deletions base/vault/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
namespace: kerberos-vault
resources:
- ../mongodb/mongodb-configmap.yaml
- kerberos-vault-deployment.yaml
- kerberos-vault-service.yaml

0 comments on commit e0080c2

Please sign in to comment.