-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from vishnoianil/deploy-prod
Prepare for production beta release of InstructLab Ui
- Loading branch information
Showing
11 changed files
with
149 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: letsencrypt-ui | ||
spec: | ||
secretName: letsencrypt-ui | ||
duration: 2160h0m0s | ||
renewBefore: 360h0m0s | ||
subject: | ||
organizations: | ||
- InstructLab | ||
privateKey: | ||
algorithm: RSA | ||
encoding: PKCS1 | ||
size: 2048 | ||
usages: | ||
- server auth | ||
- client auth | ||
dnsNames: | ||
- ui.instructlab.ai | ||
issuerRef: | ||
name: letsencrypt-ui | ||
kind: Issuer |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: instructlab | ||
resources: | ||
- ../../../base | ||
- issuer.yaml | ||
- certificate.yaml | ||
|
||
secretGenerator: | ||
- name: ui-config | ||
envs: | ||
- .env | ||
|
||
patches: | ||
- target: | ||
kind: Ingress | ||
name: ui | ||
patch: |- | ||
- op: replace | ||
path: /spec/rules/0/http/paths/0/pathType | ||
value: ImplementationSpecific | ||
- op: replace | ||
path: /spec/rules/0/http/paths/0/path | ||
value: '' | ||
- op: replace | ||
path: /spec/rules/0/host | ||
value: ui.instructlab.ai | ||
- op: replace | ||
path: /spec/tls/0/hosts/0 | ||
value: ui.instructlab.ai | ||
# Override the UI image for Openshift production deployment | ||
- target: | ||
kind: Deployment | ||
name: ui | ||
patch: |- | ||
- op: replace | ||
path: /spec/template/spec/containers/0/image | ||
value: quay.io/instructlab-ui/ui:v1.0.0-beta # Override this image if you want to use a different UI image | ||
# Override the pathservice image for Openshift production deployment | ||
- target: | ||
kind: Deployment | ||
name: pathservice | ||
patch: |- | ||
- op: replace | ||
path: /spec/template/spec/containers/0/image | ||
value: quay.io/instructlab-ui/pathservice:v1.0.0-beta # Override this image if you want to use a different pathservice image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: letsencrypt-ui | ||
spec: | ||
acme: | ||
email: avishnoi@redhat.com | ||
privateKeySecretRef: | ||
name: letsencrypt-ui-key | ||
server: 'https://acme-v02.api.letsencrypt.org/directory' | ||
solvers: | ||
- http01: | ||
ingress: | ||
serviceType: ClusterIP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters