update kerberos hub deployment

This commit is contained in:
Cedric Verstraeten
2025-03-05 11:04:03 +01:00
parent 512f0195b1
commit 47fcb7cfd9
2 changed files with 44 additions and 9 deletions

View File

@@ -44,29 +44,52 @@ data:
db = conn.getDB('Kerberos');
// This will create a user with the following credentials.
// username: youruser
// password: yourpassword
// This user can access the Hub front-end but not the admin panel. To use the admin panel you
// should use the application user (see below).
// username: user
// password: password
db.users.updateOne(
{ '_id': ObjectId('57e1011e3178aa6c5cc774d1') },
{
$set: {
'username': 'youruser',
'email': 'your@email.com',
'password': '$2a$10$XS8XdjzgUCbvGHgt9KVHEuDBnmu1bfAhT/WFxcHCubJtHud8O8vSC',
'username': 'example-user',
'email': 'example-user@email.com',
'role': 'owner',
'admin': true,
'password': '$2a$10$HbuGxkTc3eR2SANuiL8tiOEb6f0DgesLiGXHq7NU8O6zYbTXXho8q',
'amazon_access_key_id': 'AKIAxxxxxxG5Q',
'amazon_secret_access_key': 'K6rRLBI1xxxCk3C1H',
'isActive': NumberLong(1),
'registerToken': '',
'timezone': 'Europe/Brussels',
'updated_at': ISODate('2020-06-14T05:01:35.000Z'),
'created_at': ISODate('2016-09-20T09:27:58.811Z'),
'amazon_secret_access_key': 'K6rRLBI1xxxCk3C1H',
'amazon_access_key_id': 'AKIAxxxxxxG5Q',
'card_brand': 'MasterCard',
'card_last_four': '6888',
'sequence_first': 1510657836,
'card_status': 'ok',
'card_status_message': null,
'role': 'owner',
'google2fa_enabled': false
}
},
{ upsert: true }
);
// This will create am application user with the following credentials.
// Application user can access the admin panel.
// username: application
// password: password
db.users.updateOne(
{ '_id': ObjectId('57e1011e3178aa6c5cc774d1') },
{
$set: {
'username': 'application',
'email': 'example-user@email.com',
'role': 'application',
'admin': true,
'password': '$2a$10$HbuGxkTc3eR2SANuiL8tiOEb6f0DgesLiGXHq7NU8O6zYbTXXho8q',
'isActive': NumberLong(1),
'timezone': 'Europe/Brussels',
'google2fa_enabled': false
}
},

View File

@@ -140,6 +140,18 @@ email:
# Following are all the different deployments needed to make
# Kerberos hub properly working.
kerberoshub:
admin:
repository: uugai/admin
pullPolicy: IfNotPresent
tag: "v1.0.2"
replicas: 1
resources:
requests:
memory: 100Mi
cpu: 100m
limits:
memory: 100Mi
cpu: 100m
api:
repository: uugai/hub-api
pullPolicy: IfNotPresent