| 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: |
| 31 | containers: |
| 32 | - name: goproxy |
| 33 | image: {{ .Values.image.repository }}:{{ .Values.image.tag }} |
| 34 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 35 | ports: |
| 36 | - name: http |
| 37 | containerPort: {{ .Values.port }} |
| 38 | protocol: TCP |
| 39 | command: |
| 40 | - server |
| 41 | - --address=:{{ .Values.port }} |
| 42 | env: |
| 43 | - name: GOMODCACHE |
| 44 | value: /go/pkg/mod |
| Giorgi Lekveishvili | 4e166dc | 2026-07-29 15:17:13 +0400 | [diff] [blame^] | 45 | volumeMounts: |
| 46 | - name: cache-volume |
| 47 | mountPath: /go/pkg/mod |
| 48 | volumes: |
| 49 | - name: cache-volume |
| 50 | persistentVolumeClaim: |
| 51 | claimName: {{ .Values.persistentVolumeClaimName }} |
| Giorgi Lekveishvili | cc3e746 | 2026-07-29 14:56:42 +0400 | [diff] [blame] | 52 | tolerations: |
| 53 | - key: "pcloud" |
| 54 | operator: "Equal" |
| 55 | value: "role" |
| 56 | effect: "NoSchedule" |