Skip to content
Snippets Groups Projects
Select Git revision
  • c114dc182707104cb896d3ef125b7f66ee21f72a
  • master default protected
  • feat-create_little_container_for_developer
  • feat/pipeline_publish_extension
  • feat-publish_extension_on_marketplace_with_ci
  • feat-log-in
  • feat-connect_uri_handler_with_chosse_workdir_and_connection
  • feat-choose-mission-workdir
  • 10-en-tant-qu-etudiant-je-souhaite-pouvoir-lancer-une-mission-de-type-vscode-desktop-sur-mon-ide
  • new-building-way-recorder
  • fix-commit-any-challenge-type
  • recorder-push-code
  • theia-extension
  • 0.1.2
  • 0.1.1
  • 0.0.6
  • 1.4
  • 1.3
  • 1.2
  • 1.1
20 results

build.sh

Blame
  • api-deployment.yaml 2.08 KiB
    {{- if .Values.api.enabled }}
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: {{.Values.name }}-api
      labels:
        app: api
    spec:
      replicas: {{ .Values.api.replicaCount }}
      selector:
        matchLabels:
          app: api
      template:
        metadata:
          labels:
            app: api
        spec:
          securityContext:
            runAsUser: 1001
            runAsGroup: 1001
          imagePullSecrets:
            - name: takima-school-registry
          containers:
          - name: api
            image: {{ .Values.api.image.repository }}:{{ .Values.api.image.tag }}
            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: api-config
                    key: DB_ENDPOINT
              - name: POSTGRES_DB
                valueFrom:
                  configMapKeyRef:
                    name: api-config
                    key: DB_NAME
              - name: POSTGRES_USER