Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 15 additions & 98 deletions roles/gitops/rendering-apps-files/templates/console/values/00-main.j2
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ console:
backend: "{{ dsc.keycloak.subDomain }}.{{ dsc.keycloak.namespace }}.svc.cluster.local"
frontend: "<path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#domain| jsonPath {.keycloak}>"
realm: {{ dsc.keycloak.applicationRealm }}
protocol:
backend: "http"
frontend: "https"
clientIds:
backend: "console-backend"
frontend: "console-frontend"
Expand All @@ -60,107 +57,27 @@ console:
- <path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#domain| jsonPath {.console}>
annotations: {{ dsc.ingress.annotations }}
labels: {{ dsc.ingress.labels }}
client:
replicaCount: 1
container:
port: 8080
healthcheckPath: "/"
strategy:
type: "RollingUpdate"
startupProbe:
enabled: true
initialDelaySeconds: 0
successThreshold: 1
failureThreshold: 10
periodSeconds: 10
timeoutSeconds: 5
readinessProbe:
enabled: true
initialDelaySeconds: 15
successThreshold: 2
failureThreshold: 2
periodSeconds: 10
timeoutSeconds: 5
livenessProbe:
enabled: true
initialDelaySeconds: 30
successThreshold: 1
failureThreshold: 3
periodSeconds: 30
timeoutSeconds: 5
service:
type: "ClusterIP"
port: 80
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
server:
replicaCount: 1
container:
port: 8080
healthcheckPath: "/api/v1/healthz"
strategy:
type: "RollingUpdate"
startupProbe:
enabled: true
initialDelaySeconds: 0
successThreshold: 1
failureThreshold: 10
periodSeconds: 10
timeoutSeconds: 5
readinessProbe:
enabled: true
initialDelaySeconds: 15
successThreshold: 2
failureThreshold: 2
periodSeconds: 10
timeoutSeconds: 5
livenessProbe:
enabled: true
initialDelaySeconds: 30
successThreshold: 1
failureThreshold: 3
periodSeconds: 30
timeoutSeconds: 5
extraCa:
name: ""
key: ""
mountSubPath: "ca_certs"
service:
type: "ClusterIP"
port: 80
disabledPlugins: ""
resources:
requests:
memory: "128Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 80
targetMemoryUtilizationPercentage: 80
serviceAccount:
create: true
name: "cpn-console-server"
envFrom:
- secretRef:
name: dso-config
env:
DSO_NS_CHART_VERSION: "1.1.5"
Comment thread
omiladi marked this conversation as resolved.
DSO_ENV_CHART_VERSION: "1.7.0"
{% if dsc.observatorium.installEnabled %}
DSO_OBSERVABILITY_CHART_VERSION: {{ dsc.observatorium.observabilityChartVersion | quote }}
GRAFANA_URL: https://<path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#domain| jsonPath {.grafana}>
plugins:
- https://github.com/cloud-pi-native/console-plugin-observability/releases/download/{{ dsc.observatorium.observabilityPluginVersion }}/build-artifact.zip
{% endif %}
backend:
envFrom:
- secretRef:
name: dso-config
env:
DSO_NS_CHART_VERSION: "1.1.5"
DSO_ENV_CHART_VERSION: "1.7.0"
{% if dsc.observatorium.installEnabled %}
DSO_OBSERVABILITY_CHART_VERSION: {{ dsc.observatorium.observabilityChartVersion | quote }}
GRAFANA_URL: https://<path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#domain| jsonPath {.grafana}>
plugins:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,27 @@ console:
app.kubernetes.io/instance: {{ dsc.global.gitOps.envName }}-{{ dsc.console.namespace }}
app.kubernetes.io/name: {{ dsc_name }}-cpn-console-server
topologyKey: kubernetes.io/hostname

strangler:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: {{ dsc.global.gitOps.envName }}-{{ dsc.console.namespace }}
app.kubernetes.io/name: {{ dsc_name }}-cpn-console-server
topologyKey: kubernetes.io/hostname

backend:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/instance: {{ dsc.global.gitOps.envName }}-{{ dsc.console.namespace }}
app.kubernetes.io/name: {{ dsc_name }}-cpn-console-server
topologyKey: kubernetes.io/hostname
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ console:
extraCa:
name: bundle
key: ca.pem
backend:
extraCa:
name: bundle
key: ca.pem
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ console:
runAsUser: 1001
seccompProfile:
type: RuntimeDefault

backend:
container:
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault

server:
container:
Expand All @@ -23,4 +35,16 @@ console:
runAsUser: 1000
seccompProfile:
type: RuntimeDefault

strangler:
container:
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 101
seccompProfile:
type: RuntimeDefault
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,14 @@ console:
value: <path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#proxy | jsonPath {.httpsProxy}>
- name: no_proxy
value: <path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#proxy | jsonPath {.noProxy}>
backend:
proxy:
enabled: true
env:
- name: http_proxy
value: <path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#proxy | jsonPath {.httpProxy}>
- name: https_proxy
value: <path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#proxy | jsonPath {.httpsProxy}>
- name: no_proxy
value: <path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#proxy | jsonPath {.noProxy}>
{% endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ console:
server:
image:
repository: "<path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#image | jsonPath {.repository.ghcr}>/cloud-pi-native/console/server"
strangler:
image:
repository: "<path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#image | jsonPath {.repository.ghcr}>/cloud-pi-native/console/nginx-strangler"
backend:
image:
repository: "<path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#image | jsonPath {.repository.ghcr}>/cloud-pi-native/console/server-nestjs"
client:
image:
repository: "<path:{{ vaultinfra_kv_name }}/data/env/{{ dsc_name }}/apps/global/values#image | jsonPath {.repository.ghcr}>/cloud-pi-native/console/client"
Expand Down
3 changes: 0 additions & 3 deletions roles/socle-config/files/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@ spec:
cpnAnsibleJob:
helmRepoUrl: https://cloud-pi-native.github.io/helm-charts
values: {}
cpnIntegrationTestJob:
helmRepoUrl: https://cloud-pi-native.github.io/helm-charts
values: {}
gitlab:
installEnabled: true
namespace: dso-gitlab
Expand Down
1 change: 0 additions & 1 deletion roles/socle-config/files/cr-conf-dso-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ spec:
cloudnativepg: {}
console: {}
cpnAnsibleJob: {}
cpnIntegrationTestJob: {}
gitlab: {}
glexporter: {}
gitlabOperator: {}
Expand Down
17 changes: 7 additions & 10 deletions roles/socle-config/files/releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
# https://artifacthub.io/packages/helm/argo/argo-cd
chartVersion: 8.5.6
# https://github.com/cloud-pi-native/helm-charts/tree/main/charts/dso-argocd-zone
zoneChartVersion: ">=1.0.0 <2.0.0"
zoneChartVersion: "1.0.5"
argocdInfra:
# https://artifacthub.io/packages/helm/argo/argo-cd
chartVersion: 8.5.6
Expand All @@ -28,13 +28,10 @@ spec:
chartVersion: "0.27.0"
console:
# https://github.com/cloud-pi-native/console/releases
chartVersion: ">=2.0.0 <3.0.0"
chartVersion: 2.3.5
cpnAnsibleJob:
# https://github.com/cloud-pi-native/helm-charts/releases
chartVersion: ">=1.0.0 <2.0.0"
cpnIntegrationTestJob:
# https://github.com/cloud-pi-native/helm-charts/releases
chartVersion: ">=1.0.0 <2.0.0"
chartVersion: "1.1.0"
gitlab:
# https://artifacthub.io/packages/helm/gitlab/gitlab
chartVersion: "9.4.1"
Expand All @@ -57,7 +54,7 @@ spec:
# https://github.com/grafana/grafana/tags
imageVersion: "10.4.3"
# https://github.com/cloud-pi-native/helm-charts/tags
chartVersion: ">=1.0.0 <2.0.0"
chartVersion: "1.7.0"
harbor:
# https://artifacthub.io/packages/helm/harbor/harbor
chartVersion: 1.16.0
Expand All @@ -75,11 +72,11 @@ spec:
chartVersion: 5.14.0
observatorium:
# https://github.com/cloud-pi-native/helm-charts/tags
chartVersion: ">=0.0.0 <1.0.0"
chartVersion: "0.5.4"
# https://github.com/cloud-pi-native/helm-charts/tags
observabilityChartVersion: ">=0.0.0 <1.0.0"
observabilityChartVersion: "0.1.8"
# https://github.com/cloud-pi-native/helm-charts/tags
observabilityPluginVersion: "v1.2.0"
observabilityPluginVersion: "v1.2.1"
sonarqube:
# https://artifacthub.io/packages/helm/sonarqube/sonarqube
chartVersion: 10.8.1
Expand Down
17 changes: 0 additions & 17 deletions roles/socle-config/templates/crd-conf-dso.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -460,23 +460,6 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
cpnIntegrationTestJob:
description: Configuration for cpn-job.
properties:
helmRepoUrl:
description: Cloud-Pi-Native helm repository url.
type: string
chartVersion:
description: Cloud-Pi-Native helm chart version (e.g., "1.0.0").
type: string
values:
description: |
You can add custom values for cpn-job, they will be merged with roles/gitops/rendering-apps-files/
https://github.com/cloud-pi-native/helm-charts/blob/main/charts/dso-job
https://github.com/cloud-pi-native/helm-charts/blob/main/charts/dso-job/values.yaml
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
gitlab:
description: Configuration for GitLab.
properties:
Expand Down
Loading