Skip to content

Commit

Permalink
add white-labeling option Kerberos Factory
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Oct 25, 2023
1 parent 73cc0a3 commit 6678b1c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
6 changes: 6 additions & 0 deletions kubernetes/kerberos-factory/assets/env.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
(function(window) {
window["env"] = window["env"] || {};
// Environment variables
window["env"]["environment"] = "whitelabel";
window["env"]["pageTitle"] = "Your application";
})(this);
5 changes: 5 additions & 0 deletions kubernetes/kerberos-factory/assets/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@charset "utf-8";

.body {
background: white;
}
12 changes: 10 additions & 2 deletions kubernetes/kerberos-factory/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: factory
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: factory
Expand All @@ -20,7 +20,7 @@ spec:
spec:
containers:
- name: factory
image: "kerberos/factory:1.0.910553312" # or you can use "kerberos/factory:latest"
image: "kerberos/factory:1.0.1049084302" # or you can use "kerberos/factory:latest"
#imagePullPolicy: Always
resources:
limits:
Expand All @@ -31,11 +31,15 @@ spec:
envFrom:
- configMapRef:
name: mongodb

# Injecting the ca-certificates inside the container.
#volumeMounts:
#- name: rootcerts
# mountPath: /etc/ssl/certs/ca-certificates.crt
# subPath: ca-certificates.crt
#- name: custom-layout
# mountPath: /home/factory/www/assets/custom

env:
- name: GIN_MODE
value: release
Expand All @@ -62,10 +66,14 @@ spec:
# the Kerberos Agent in following directory: /etc/ssl/certs/
#- name: CERTIFICATES_CONFIGMAP
# value: "rootcerts"

#volumes:
#- name: rootcerts
# configMap:
# name: rootcerts
#- name: custom-layout
# persistentVolumeClaim:
# claimName: custom-layout-claim
---
apiVersion: v1
kind: Service
Expand Down

0 comments on commit 6678b1c

Please sign in to comment.