| Giorgi Lekveishvili | cc3e746 | 2026-07-29 14:56:42 +0400 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: goproxy |
| 5 | namespace: {{ .Release.Namespace }} |
| 6 | spec: |
| 7 | type: ClusterIP |
| 8 | selector: |
| 9 | app: goproxy |
| 10 | ports: |
| 11 | - name: http |
| 12 | port: {{ .Values.servicePort }} |
| 13 | targetPort: http |
| 14 | protocol: TCP |
| 15 | --- |
| 16 | apiVersion: apps/v1 |
| 17 | kind: Deployment |
| 18 | metadata: |
| 19 | name: goproxy |
| 20 | namespace: {{ .Release.Namespace }} |
| 21 | spec: |
| 22 | selector: |
| 23 | matchLabels: |
| 24 | app: goproxy |
| 25 | replicas: 1 |
| 26 | template: |
| 27 | metadata: |
| 28 | labels: |
| 29 | app: goproxy |
| 30 | spec: |
| Giorgi Lekveishvili | 6be4d3f | 2026-07-29 15:52:22 +0400 | [diff] [blame] | 31 | securityContext: |
| 32 | fsGroup: 65534 |
| 33 | fsGroupChangePolicy: OnRootMismatch |
| Giorgi Lekveishvili | cc3e746 | 2026-07-29 14:56:42 +0400 | [diff] [blame] | 34 | containers: |
| 35 | - name: goproxy |
| 36 | image: {{ .Values.image.repository }}:{{ .Values.image.tag }} |
| 37 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 38 | ports: |
| 39 | - name: http |
| 40 | containerPort: {{ .Values.port }} |
| 41 | protocol: TCP |
| 42 | command: |
| Giorgi Lekveishvili | 6be4d3f | 2026-07-29 15:52:22 +0400 | [diff] [blame] | 43 | - /usr/local/bin/goproxy |
| Giorgi Lekveishvili | cc3e746 | 2026-07-29 14:56:42 +0400 | [diff] [blame] | 44 | - server |
| 45 | - --address=:{{ .Values.port }} |
| Giorgi Lekveishvili | 6be4d3f | 2026-07-29 15:52:22 +0400 | [diff] [blame] | 46 | - --cacher-dir=/go/pkg/mod |
| Giorgi Lekveishvili | cc3e746 | 2026-07-29 14:56:42 +0400 | [diff] [blame] | 47 | env: |
| 48 | - name: GOMODCACHE |
| 49 | value: /go/pkg/mod |
| Giorgi Lekveishvili | 4e166dc | 2026-07-29 15:17:13 +0400 | [diff] [blame] | 50 | volumeMounts: |
| 51 | - name: cache-volume |
| 52 | mountPath: /go/pkg/mod |
| Giorgi Lekveishvili | 6be4d3f | 2026-07-29 15:52:22 +0400 | [diff] [blame] | 53 | securityContext: |
| 54 | runAsUser: 65534 |
| 55 | runAsGroup: 65534 |
| Giorgi Lekveishvili | 4e166dc | 2026-07-29 15:17:13 +0400 | [diff] [blame] | 56 | volumes: |
| 57 | - name: cache-volume |
| 58 | persistentVolumeClaim: |
| 59 | claimName: {{ .Values.persistentVolumeClaimName }} |
| Giorgi Lekveishvili | cc3e746 | 2026-07-29 14:56:42 +0400 | [diff] [blame] | 60 | tolerations: |
| 61 | - key: "pcloud" |
| 62 | operator: "Equal" |
| 63 | value: "role" |
| 64 | effect: "NoSchedule" |