diff --git a/dist/cdb/templates/api/api-config.yaml b/dist/cdb/templates/api/api-config.yaml deleted file mode 100644 index 2a5e3bd151dce670bf3990bf3f61388a01321baa..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/api/api-config.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Source: cdb/templates/api/api-config.yaml -apiVersion: v1 -kind: ConfigMap -metadata: - name: cdb-staging-api -data: - DB_ENDPOINT: "cdb-staging-database:5432" diff --git a/dist/cdb/templates/api/api-deployment.yaml b/dist/cdb/templates/api/api-deployment.yaml deleted file mode 100644 index d4a130727eb5d7d5f960ef699ef264a6ba8069ac..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/api/api-deployment.yaml +++ /dev/null @@ -1,80 +0,0 @@ ---- -# Source: cdb/templates/api/api-deployment.yaml -apiVersion: apps/v1 -kind: Deployment -metadata: - name: cdb-staging-api - labels: - app: api -spec: - replicas: 1 - selector: - matchLabels: - app: api - template: - metadata: - labels: - app: api - spec: - securityContext: - runAsUser: 1001 - runAsGroup: 1001 - imagePullSecrets: - - name: takima-school-registry - containers: - - name: api - image: registry.gitlab.com/takima-school/images/cdb/api:latest - resources: - requests: - memory: "192M" - cpu: "0.2" - limits: - memory: "256M" - cpu: "1" - startupProbe: - httpGet: - path: /actuator/health - port: 8080 - initialDelaySeconds: 15 - periodSeconds: 3 - successThreshold: 1 - failureThreshold: 5 - livenessProbe: - httpGet: - path: /actuator/health/liveness - port: 8080 - periodSeconds: 3 - successThreshold: 1 - failureThreshold: 3 - readinessProbe: - httpGet: - path: /actuator/health/readiness - port: 8080 - periodSeconds: 1 - successThreshold: 1 - failureThreshold: 3 - securityContext: - allowPrivilegeEscalation: false - ports: - - containerPort: 8080 - env: - - name: DB_ENDPOINT - valueFrom: - configMapKeyRef: - name: cdb-staging-api - key: DB_ENDPOINT - - name: POSTGRES_DB - valueFrom: - configMapKeyRef: - name: cdb-staging-database - key: DB_NAME - - name: POSTGRES_USER - valueFrom: - secretKeyRef: - name: cdb-staging-database - key: PG_USERNAME # nom de la clef dans le config map - - name: POSTGRES_PASSWORD - valueFrom: - secretKeyRef: - name: cdb-staging-database # Nom du secret - key: PG_PASSWORD diff --git a/dist/cdb/templates/api/api-ingress.yaml b/dist/cdb/templates/api/api-ingress.yaml deleted file mode 100644 index e3f29f1fce1bb9bb0d47b40e2fa5aab64ac6de22..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/api/api-ingress.yaml +++ /dev/null @@ -1,24 +0,0 @@ ---- -# Source: cdb/templates/api/api-ingress.yaml -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - kubernetes.io/ingress.class: nginx - name: cdb-staging-api -spec: - rules: - - host: api-staging.gretureau.takima.school - http: - paths: - - backend: - service: - name: cdb-staging-api - port: - number: 80 - path: / - pathType: Prefix - tls: - - hosts: - - api-staging.gretureau.takima.school - secretName: app-wildcard diff --git a/dist/cdb/templates/api/api-service.yaml b/dist/cdb/templates/api/api-service.yaml deleted file mode 100644 index 0229a977cc1fb9fdbfd43fdfeff293ee72c27ba1..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/api/api-service.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -# Source: cdb/templates/api/api-service.yaml -apiVersion: v1 -kind: Service -metadata: - name: cdb-staging-api -spec: - selector: - app: api - ports: - - protocol: TCP - port: 80 - targetPort: 8080 diff --git a/dist/cdb/templates/database/pg-config.yaml b/dist/cdb/templates/database/pg-config.yaml deleted file mode 100644 index d50f26492270a9f23053b8608dffb73eb96b4c65..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/database/pg-config.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -# Source: cdb/templates/database/pg-config.yaml -apiVersion: v1 -kind: ConfigMap -metadata: - name: cdb-staging-database -data: - DB_NAME: cdb-db - DB_PATH: /var/lib/postgresql/data/pgdata diff --git a/dist/cdb/templates/database/pg-credentials.yaml b/dist/cdb/templates/database/pg-credentials.yaml deleted file mode 100644 index f8a98946934462c7258032a68edeca5e4a4e6e5e..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/database/pg-credentials.yaml +++ /dev/null @@ -1,10 +0,0 @@ ---- -# Source: cdb/templates/database/pg-credentials.yaml -apiVersion: v1 -kind: Secret -metadata: - name: cdb-staging-database -type: Opaque -data: - PG_USERNAME: YWRtaW4= - PG_PASSWORD: dGVzdDEyMyo= diff --git a/dist/cdb/templates/database/pg-deployment.yaml b/dist/cdb/templates/database/pg-deployment.yaml deleted file mode 100644 index 0f462867563b99c5124a58c3870845df9316d7ea..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/database/pg-deployment.yaml +++ /dev/null @@ -1,46 +0,0 @@ ---- -# Source: cdb/templates/database/pg-deployment.yaml -apiVersion: apps/v1 -kind: Deployment -metadata: - name: cdb-staging-database - labels: - app: pg -spec: - replicas: 1 - selector: - matchLabels: - app: pg - template: - metadata: - labels: - app: pg - spec: - containers: - - name: postgres - image: registry.takima.io/school/proxy/postgres:latest - ports: - - containerPort: 80 - env: - - name: POSTGRES_DB - valueFrom: - configMapKeyRef: - name: cdb-staging-database # Nom du configmap - key: DB_NAME # nom de la clef dans le config map contenant le nom de la DB - - name: PGDATA - valueFrom: - configMapKeyRef: - name: cdb-staging-database # Nom du configmap - key: DB_PATH # nom de la clef dans le configMap contenant path ou installer la db dans le volume persistant - - name: POSTGRES_USER - valueFrom: - secretKeyRef: - name: cdb-staging-database # Nom du secret - key: PG_USERNAME # nom de la clef dans le secret - - name: POSTGRES_PASSWORD - valueFrom: - secretKeyRef: - name: cdb-staging-database # Nom du secret - key: PG_PASSWORD # nom de la clef dans le secret contenant le password - imagePullSecrets: - - name: takima-school-registry diff --git a/dist/cdb/templates/database/pg-service.yaml b/dist/cdb/templates/database/pg-service.yaml deleted file mode 100644 index c58fc86779b542ace0156582d083849b97438152..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/database/pg-service.yaml +++ /dev/null @@ -1,14 +0,0 @@ ---- -# Source: cdb/templates/database/pg-service.yaml -apiVersion: v1 -kind: Service -metadata: - name: cdb-staging-database - labels: - app: pg -spec: - type: ClusterIP - ports: - - port: 5432 - selector: - app: pg diff --git a/dist/cdb/templates/front/front-config.yaml b/dist/cdb/templates/front/front-config.yaml deleted file mode 100644 index 43e5f4153828aeea46ec08f2c4b5a4879321e60c..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/front/front-config.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -# Source: cdb/templates/front/front-config.yaml -apiVersion: v1 -kind: ConfigMap -metadata: - name: cdb-staging-front -data: - API_URL: "http://api-staging.gretureau.takima.school" diff --git a/dist/cdb/templates/front/front-deployment.yaml b/dist/cdb/templates/front/front-deployment.yaml deleted file mode 100644 index edcac438926ab60d8043dfa4e2cc6f88078301a8..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/front/front-deployment.yaml +++ /dev/null @@ -1,68 +0,0 @@ ---- -# Source: cdb/templates/front/front-deployment.yaml -apiVersion: apps/v1 -kind: Deployment -metadata: - name: cdb-staging-front - labels: - app: front -spec: - replicas: 1 - selector: - matchLabels: - app: front - template: - metadata: - labels: - app: front - spec: - imagePullSecrets: - - name: takima-school-registry - securityContext: - runAsUser: 101 - runAsGroup: 101 - - containers: - - name: front - image: registry.gitlab.com/takima-school/images/cdb/www:latest - imagePullPolicy: Always - ports: - - containerPort: 8080 - resources: - requests: - memory: "32M" - cpu: "0.1" - limits: - memory: "128M" - cpu: "1" - startupProbe: - httpGet: - path: /health - port: 8080 - initialDelaySeconds: 3 - periodSeconds: 1 - successThreshold: 1 - failureThreshold: 5 - livenessProbe: - httpGet: - path: /health - port: 8080 - periodSeconds: 3 - successThreshold: 1 - failureThreshold: 3 - readinessProbe: - httpGet: - path: /health - port: 8080 - periodSeconds: 1 - successThreshold: 1 - failureThreshold: 3 - securityContext: - allowPrivilegeEscalation: false - - env: - - name: API_URL - valueFrom: - configMapKeyRef: - name: cdb-staging-front - key: API_URL diff --git a/dist/cdb/templates/front/front-ingress.yaml b/dist/cdb/templates/front/front-ingress.yaml deleted file mode 100644 index 5e3e1ca69bd51945b1c72aa7ba1fbed39ac75478..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/front/front-ingress.yaml +++ /dev/null @@ -1,20 +0,0 @@ ---- -# Source: cdb/templates/front/front-ingress.yaml -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - kubernetes.io/ingress.class: nginx - name: cdb-staging-front -spec: - rules: - - host: www.gretureau.takima.school - http: - paths: - - backend: - service: - name: cdb-staging-front - port: - number: 80 - path: / - pathType: Prefix diff --git a/dist/cdb/templates/front/front-service.yaml b/dist/cdb/templates/front/front-service.yaml deleted file mode 100644 index 484951fb1d1b39d24e42ef4edff568bf8d57e585..0000000000000000000000000000000000000000 --- a/dist/cdb/templates/front/front-service.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -# Source: cdb/templates/front/front-service.yaml -apiVersion: v1 -kind: Service -metadata: - name: cdb-staging-front -spec: - selector: - app: front - ports: - - protocol: TCP - port: 80 - targetPort: 8080