diff --git a/.github/workflows/google-gke-prod.yaml b/.github/workflows/google-gke-prod.yaml index 1c80f46..d1dfcc5 100644 --- a/.github/workflows/google-gke-prod.yaml +++ b/.github/workflows/google-gke-prod.yaml @@ -139,22 +139,22 @@ jobs: ${{ env.GKE_APP_NAME }}-${{ inputs.release }} --values=./helm/${{ inputs.release }}.yaml ./helm # Install Cache Helm chart - - name: Add Helm cache repo - uses: WyriHaximus/github-action-helm3@v2 - with: - exec: | - helm repo add mittwald https://helm.mittwald.de + # - name: Add Helm cache repo + # uses: WyriHaximus/github-action-helm3@v2 + # with: + # exec: | + # helm repo add mittwald https://helm.mittwald.de - - name: Helm Cache install - uses: WyriHaximus/github-action-helm3@v2 - with: - exec: | - helm upgrade --install --create-namespace \ - --namespace ${{ env.GKE_APP_NAMESPACE }} \ - --set app.environment=${{ env.GKE_APP_NAMESPACE }} \ - --set app.release=${{ env.GKE_APP_NAMESPACE }} \ - --set image.repository=quay.io/mittwald/kube-httpcache \ - --set image.tag=stable \ - --set nameOverride=${{ env.GKE_APP_NAME }}-${{ inputs.release }}-cache \ - --set fullnameOverride=${{ env.GKE_APP_NAME }}-${{ inputs.release }}-cache \ - ${{ env.GKE_APP_NAME }}-${{ inputs.release }}-cache --values=./helm/${{ inputs.release }}-cache.yaml mittwald/kube-httpcache \ No newline at end of file + # - name: Helm Cache install + # uses: WyriHaximus/github-action-helm3@v2 + # with: + # exec: | + # helm upgrade --install --create-namespace \ + # --namespace ${{ env.GKE_APP_NAMESPACE }} \ + # --set app.environment=${{ env.GKE_APP_NAMESPACE }} \ + # --set app.release=${{ env.GKE_APP_NAMESPACE }} \ + # --set image.repository=quay.io/mittwald/kube-httpcache \ + # --set image.tag=stable \ + # --set nameOverride=${{ env.GKE_APP_NAME }}-${{ inputs.release }}-cache \ + # --set fullnameOverride=${{ env.GKE_APP_NAME }}-${{ inputs.release }}-cache \ + # ${{ env.GKE_APP_NAME }}-${{ inputs.release }}-cache --values=./helm/${{ inputs.release }}-cache.yaml mittwald/kube-httpcache \ No newline at end of file diff --git a/helm/boston.yaml b/helm/boston.yaml new file mode 100644 index 0000000..d777b14 --- /dev/null +++ b/helm/boston.yaml @@ -0,0 +1,88 @@ +image: + pullPolicy: Always + +imagePullSecrets: + - name: github + +replicaCount: 1 + +autoscaling: + enabled: true + minReplicas: 1 + maxReplicas: 4 + targetCPUUtilizationPercentage: 80 + targetMemoryUtilizationPercentage: 120 + +resources: + requests: + cpu: 500m + memory: 2Gi + limits: + cpu: 1000m + memory: 8Gi + +livenessProbe: + failureThreshold: 3 + httpGet: + path: / + port: 7777 + scheme: HTTP + initialDelaySeconds: 30 + periodSeconds: 30 + timeoutSeconds: 30 + successThreshold: 1 + +readinessProbe: + failureThreshold: 3 + httpGet: + path: / + port: 7777 + scheme: HTTP + initialDelaySeconds: 30 + periodSeconds: 30 + timeoutSeconds: 30 + successThreshold: 2 + +service: + type: ClusterIP + port: 7777 + +serviceAccount: + # Specifies whether a service account should be created + create: true + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +configMap: + TESSERACT_DEBUG: "true" + TESSERACT_SCHEMA: "schema" + +# secrets: +# TESSERACT_BACKEND: + +ingress: + enabled: true + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-prod" + acme.cert-manager.io/http01-edit-in-place: "true" + ingress.kubernetes.io/ssl-redirect: "true" + nginx.org/proxy-connect-timeout: "480s" + nginx.org/proxy-read-timeout: "480s" + nginx.org/proxy-buffers: "8 16k" + nginx.org/proxy-buffer-size: "16k" + nginx.org/proxy-busy-buffers-size: "64k" + nginx.org/location-snippets: | + add_header Access-Control-Allow-Origin *; + customHosts: + - host: boston-api-ts.datausa.io + paths: + - path: / + service: tesseract-api-boston + port: 80 + tls: + - secretName: tesseract-api-ingress-tls + hosts: + - boston-api-ts.datausa.io \ No newline at end of file