From ef73238df39de3436ec51d5df2924e52631e9160 Mon Sep 17 00:00:00 2001 From: Guillaume Retureau <guillaume.retureau@eileo.com> Date: Wed, 28 Jun 2023 15:37:51 +0200 Subject: [PATCH] Remove dist folder --- dist/cdb/templates/api/api-config.yaml | 8 -- dist/cdb/templates/api/api-deployment.yaml | 80 ------------------- dist/cdb/templates/api/api-ingress.yaml | 24 ------ dist/cdb/templates/api/api-service.yaml | 13 --- dist/cdb/templates/database/pg-config.yaml | 9 --- .../templates/database/pg-credentials.yaml | 10 --- .../cdb/templates/database/pg-deployment.yaml | 46 ----------- dist/cdb/templates/database/pg-service.yaml | 14 ---- dist/cdb/templates/front/front-config.yaml | 8 -- .../cdb/templates/front/front-deployment.yaml | 68 ---------------- dist/cdb/templates/front/front-ingress.yaml | 20 ----- dist/cdb/templates/front/front-service.yaml | 13 --- 12 files changed, 313 deletions(-) delete mode 100644 dist/cdb/templates/api/api-config.yaml delete mode 100644 dist/cdb/templates/api/api-deployment.yaml delete mode 100644 dist/cdb/templates/api/api-ingress.yaml delete mode 100644 dist/cdb/templates/api/api-service.yaml delete mode 100644 dist/cdb/templates/database/pg-config.yaml delete mode 100644 dist/cdb/templates/database/pg-credentials.yaml delete mode 100644 dist/cdb/templates/database/pg-deployment.yaml delete mode 100644 dist/cdb/templates/database/pg-service.yaml delete mode 100644 dist/cdb/templates/front/front-config.yaml delete mode 100644 dist/cdb/templates/front/front-deployment.yaml delete mode 100644 dist/cdb/templates/front/front-ingress.yaml delete mode 100644 dist/cdb/templates/front/front-service.yaml diff --git a/dist/cdb/templates/api/api-config.yaml b/dist/cdb/templates/api/api-config.yaml deleted file mode 100644 index 2a5e3bd..0000000 --- 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 d4a1307..0000000 --- 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 e3f29f1..0000000 --- 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 0229a97..0000000 --- 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 d50f264..0000000 --- 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 f8a9894..0000000 --- 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 0f46286..0000000 --- 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 c58fc86..0000000 --- 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 43e5f41..0000000 --- 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 edcac43..0000000 --- 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 5e3e1ca..0000000 --- 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 484951f..0000000 --- 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 -- GitLab