Skip to content

Commit

Permalink
Merge pull request #52 from entando/release/7.2
Browse files Browse the repository at this point in the history
IT-366 Merging release/7.2 branch to develop
  • Loading branch information
BrenoQVDS authored Jun 12, 2023
2 parents 4503577 + 104becf commit bd1388d
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 13 deletions.
165 changes: 165 additions & 0 deletions dist/ge-1-1-6/plain-templates/misc/entando-cds.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
apiVersion: v1
kind: Secret
metadata:
name: YOUR-TENANT-ID-kc-secret
type: Opaque
stringData:
KC_PUBLIC_KEY: "-----BEGIN PUBLIC KEY-----\nYOUR-PUBLIC-KEYCLOAK-KEY\n-----END PUBLIC KEY-----\n"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
deployment: YOUR-TENANT-ID-cds-deployment
name: YOUR-TENANT-ID-cds-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
limits:
storage: 1Gi
requests:
storage: 1Gi
---
apiVersion: v1
kind: Service
metadata:
name: YOUR-TENANT-ID-cds-service
labels:
app: YOUR-TENANT-ID-cds-service
spec:
ports:
- port: 8080
name: internal-port
protocol: TCP
targetPort: 8080
- port: 8081
name: public-port
protocol: TCP
targetPort: 8081
selector:
app: YOUR-TENANT-ID-cds-deployment
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: YOUR-TENANT-ID-cds-deployment
labels:
app: YOUR-TENANT-ID-cds-deployment
spec:
selector:
matchLabels:
app: YOUR-TENANT-ID-cds-deployment
template:
metadata:
labels:
app: YOUR-TENANT-ID-cds-deployment
spec:
initContainers:
- name: init-cds-data
env:
- name: FORCE_CDS
value: "false"
- name: REPO_PATH
value: https://raw.github.com/entando-ps/cds/entando721/entando-data/
- name: ARCHIVE_NAME
value: entando721.tar.gz
image: registry.hub.docker.com/entando/busybox-cds:1.36.0
imagePullPolicy: IfNotPresent
volumeMounts:
- mountPath: /entando-data
name: cds-data-volume
containers:
- readinessProbe:
httpGet:
port: 8081
path: /health/health_check
scheme: HTTP
failureThreshold: 1
initialDelaySeconds: 5
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 5
env:
- name: RUST_LOG
value: actix_web=info,actix_server=info,actix_web_middleware_keycloak_auth=trace
- name: KEYCLOAK_PUBLIC_KEY
valueFrom:
secretKeyRef:
key: KC_PUBLIC_KEY
name: YOUR-TENANT-ID-kc-secret
- name: CORS_ALLOWED_ORIGIN # # use for external CDS service
value: All # enter your Entando app domain name
- name: CORS_ALLOWED_ORIGIN_END_WITH # use for wildcard domain name
value: "YOUR-HOST-NAME" # enter wildcard domain name for your Entando app, e.g. "nip.io"
name: cds
image: docker.io/entando/cds:1.0.4
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
scheme: HTTP
port: 8081
path: /health/health_check
timeoutSeconds: 5
successThreshold: 1
periodSeconds: 30
initialDelaySeconds: 5
failureThreshold: 1
ports:
- containerPort: 8080
name: internal-port
- containerPort: 8081
name: public-port
resources:
limits:
cpu: 500m
memory: 500Mi
requests:
cpu: 500m
memory: 500Mi
volumeMounts:
- mountPath: /entando-data
name: cds-data-volume
volumes:
- name: cds-data-volume
persistentVolumeClaim:
claimName: YOUR-TENANT-ID-cds-pvc
readOnly: false
replicas: 1
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: YOUR-TENANT-ID-cds-ingress
annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;
proxy_set_header X-Scheme \$scheme;
proxy_set_header X-Forwarded-Proto \$scheme;
add_header Content-Security-Policy upgrade-insecure-requests;
nginx.ingress.kubernetes.io/proxy-body-size: "150m" # edit according to the file size you require
nginx.org/client-max-body-size: "150m" # edit according to the file size you require
spec:
ingressClassName: nginx
rules:
- host: YOUR-APP-NAME-cds.YOUR-HOST-NAME
http:
paths:
- backend:
service:
name: YOUR-TENANT-ID-cds-service
port:
number: 8081
pathType: Prefix
path: /YOUR-TENANT-ID
- backend:
service:
name: YOUR-TENANT-ID-cds-service
port:
number: 8080
pathType: Prefix
path: /api/v1/
# tls: # Optional - enable TLS here
# - hosts:
# - YOUR-APP-NAME-cds.YOUR-HOST-NAME
# secretName: cds-tls
2 changes: 1 addition & 1 deletion dist/ge-1-1-6/samples/entando-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ spec:
environmentVariables: null
dbms: embedded
ingressHostName: YOUR-HOST-NAME
standardServerImage: eap
standardServerImage: tomcat
replicas: 1
6 changes: 3 additions & 3 deletions dist/ge-1-1-6/samples/openshift-catalog-source.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: entando-7-2-1
name: entando-7-2-1-test2
namespace: openshift-marketplace
spec:
displayName: "Entando 7.2.1"
image: registry.hub.docker.com/entandobuilduser/entando-k8s-index@sha256:217242a92d6abaa7254252bcf48eacba204eeaa2e01bb559fe3434f380469032
displayName: "Entando 7.2.1-test2"
image: registry.hub.docker.com/entandobuilduser/entando-k8s-index@sha256:755de58079c333ee0ddc866f318c0d9cf191ece7285723ae8cff749eebbab0e4
sourceType: grpc
updateStrategy:
registryPoll:
Expand Down
6 changes: 3 additions & 3 deletions dist/manifest
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# ENTANDO VERSION
ENTANDO_RELEASE="v7.2.1"
ENTANDO_RELEASE="v7.2.1-test2"

# --------------------------------------------------------------------------------

# OLM INSTALLATIONS - OPERATOR BUNDLE
OPERATOR_BUNDLE_VERSION="v7.2.1"
OPERATOR_BUNDLE_VERSION="v7.2.1-test2"
REPO_OPERATOR_BUNDLE_ADDR="https://github.com/entando-k8s/entando-k8s-operator-bundle.git"
REPO_OPERATOR_BUNDLE_DIR="entando-k8s-operator-bundle"
OKD_CATALOG_IMAGE="registry.hub.docker.com/entandobuilduser/entando-k8s-index@sha256:217242a92d6abaa7254252bcf48eacba204eeaa2e01bb559fe3434f380469032"
OKD_CATALOG_IMAGE="registry.hub.docker.com/entandobuilduser/entando-k8s-index@sha256:755de58079c333ee0ddc866f318c0d9cf191ece7285723ae8cff749eebbab0e4"

# TOOL: ENTANDO CLI
ENTANDO_CLI_VERSION="v7.2.0"
Expand Down
4 changes: 2 additions & 2 deletions dist/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
entando:
main: "v7.2.1"
operator_bundle: "v7.2.1"
main: "v7.2.1-test2"
operator_bundle: "v7.2.1-test2"
entando_cli_version: "v7.2.0"

dependencies:
Expand Down
6 changes: 3 additions & 3 deletions manifest
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# ENTANDO VERSION
ENTANDO_RELEASE="v7.2.1"
ENTANDO_RELEASE="v7.2.1-test2"

# --------------------------------------------------------------------------------

# OLM INSTALLATIONS - OPERATOR BUNDLE
OPERATOR_BUNDLE_VERSION="v7.2.1"
OPERATOR_BUNDLE_VERSION="v7.2.1-test2"
REPO_OPERATOR_BUNDLE_ADDR="https://github.com/entando-k8s/entando-k8s-operator-bundle.git"
REPO_OPERATOR_BUNDLE_DIR="entando-k8s-operator-bundle"
OKD_CATALOG_IMAGE="registry.hub.docker.com/entandobuilduser/entando-k8s-index@sha256:217242a92d6abaa7254252bcf48eacba204eeaa2e01bb559fe3434f380469032"
OKD_CATALOG_IMAGE="registry.hub.docker.com/entandobuilduser/entando-k8s-index@sha256:755de58079c333ee0ddc866f318c0d9cf191ece7285723ae8cff749eebbab0e4"

# TOOL: ENTANDO CLI
ENTANDO_CLI_VERSION="v7.2.0"
Expand Down
2 changes: 1 addition & 1 deletion script/lib/smp-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ _set_catalog_placeholders() {
_set_placeholders() {
local TPL="$1"
local REPLICA="1"
local IMGTYPE="eap"
local IMGTYPE="tomcat"
local DB="${OVERRIDE_DB_TYPE:-"embedded"}"
local ENTANDO_HOSTNAME="YOUR-HOST-NAME"
local ENTANDO_NAMESPACE="entando"
Expand Down

0 comments on commit bd1388d

Please sign in to comment.