Skip to content

Commit

Permalink
upgrade factory
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Apr 27, 2023
1 parent 6cdd127 commit e69317f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 37 deletions.
12 changes: 4 additions & 8 deletions kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ Create the config map.

### Deployment

Before installing Kerberos Factory, open the `./kerberos-factory/deployment.yaml` configuration file. At the of the bottom file you will find two endpoints, similar to the Ingres file below. Update the hostnames to your own preferred domain, and add these to your DNS server or `/etc/hosts` file (pointing to the same IP as the Traefik/Ingress-nginx EXTERNAL-IP).
Before installing Kerberos Factory, open the `./kerberos-factory/deployment.yaml` configuration file. At the of the bottom file you will find two endpoints, similar to the Ingres file below. Update the hostname to your own preferred domain, and add these to your DNS server or `/etc/hosts` file (pointing to the same IP as the Traefik/Ingress-nginx EXTERNAL-IP).

spec:
rules:
Expand All @@ -361,13 +361,6 @@ Before installing Kerberos Factory, open the `./kerberos-factory/deployment.yaml
backend:
serviceName: kerberos-factory
servicePort: 80
--> - host: api.factory.domain.com
http:
paths:
- path: /
backend:
serviceName: kerberos-factory
servicePort: 8082

If you are using Ingress Nginx, do not forgot to comment `Traefik` and uncomment `Ingress Nginx`.

Expand All @@ -378,6 +371,9 @@ If you are using Ingress Nginx, do not forgot to comment `Traefik` and uncomment
annotations:
#kubernetes.io/ingress.class: traefik
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod"

Once you have corrected the DNS names (or internal /etc/hosts file), install the Kerberos Factory web app inside your cluster.

Expand Down
40 changes: 11 additions & 29 deletions kubernetes/kerberos-factory/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ spec:
spec:
containers:
- name: factory
image: "kerberos/factory:1.0.669719463"
image: "kerberos/factory:1.0.851209989"
#imagePullPolicy: Always
ports:
- containerPort: 80
- containerPort: 8082
envFrom:
- configMapRef:
name: mongodb
Expand All @@ -34,26 +33,24 @@ spec:
# mountPath: /etc/ssl/certs/ca-certificates.crt
# subPath: ca-certificates.crt
env:
- name: NAMESPACE
value: "kerberos-factory"
- name: KERBEROS_LOGIN_USERNAME
value: "root"
- name: KERBEROS_LOGIN_PASSWORD
value: "kerberos"

- name: KERBEROS_AGENT_IMAGE
value: "kerberos/agent:9d70778"
- name: KERBEROS_AGENT_MEMORY_LIMIT
value: "256Mi"

# Do not touch this, unless you know what you are doing.
- name: NAMESPACE
value: "kerberos-factory"
- name: FACTORY_ENVIRONMENT
value: "kubernetes"
- name: K8S_PROXY
value: http://localhost:8082
# By default the API will be served on api.factorydomain.com (api.) is prefixed.
# If you prefer another hostname for the API e.g. myfactoryapi-factorydomain.com
# Enable and change this variable to "myfactoryapi-factorydomain.com"
#- name: FACTORY_API_URL
# value: "myfactoryapi-factorydomain.com"

value: http://localhost:80

# Additional certificates can be injected into the Kerberos Agents, through the creation of a configmap.
# A certificate "ca-certificates.crt" is expected in the configmap, and will be added to
# the Kerberos Agent in following directory: /etc/ssl/certs/
Expand All @@ -76,10 +73,6 @@ spec:
targetPort: 80
name: frontend
protocol: TCP
- port: 8082
name: backend
targetPort: 8082
protocol: TCP
selector:
app: factory
---
Expand All @@ -96,9 +89,8 @@ metadata:
spec:
#tls:
#- hosts:
# - factory.domain.com
# - api.factory.domain.com
# secretName: factory-tls
#- factory.domain.com
#secretName: factory-tls
rules:
- host: factory.domain.com
http:
Expand All @@ -109,14 +101,4 @@ spec:
service:
name: factory
port:
number: 80
- host: api.factory.domain.com # myfactoryapi-factorydomain.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: factory
port:
number: 8082
number: 80

0 comments on commit e69317f

Please sign in to comment.