blob: 2d0729481f235e9e790864d5b0b93722d94a15c8 [file] [log] [blame]
Giorgi Lekveishvilicc3e7462026-07-29 14:56:42 +04001apiVersion: v1
2kind: Service
3metadata:
4 name: goproxy
5 namespace: {{ .Release.Namespace }}
6spec:
7 type: ClusterIP
8 selector:
9 app: goproxy
10 ports:
11 - name: http
12 port: {{ .Values.servicePort }}
13 targetPort: http
14 protocol: TCP
15---
16apiVersion: apps/v1
17kind: Deployment
18metadata:
19 name: goproxy
20 namespace: {{ .Release.Namespace }}
21spec:
22 selector:
23 matchLabels:
24 app: goproxy
25 replicas: 1
26 template:
27 metadata:
28 labels:
29 app: goproxy
30 spec:
Giorgi Lekveishvili6be4d3f2026-07-29 15:52:22 +040031 securityContext:
32 fsGroup: 65534
33 fsGroupChangePolicy: OnRootMismatch
Giorgi Lekveishvilicc3e7462026-07-29 14:56:42 +040034 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 Lekveishvili6be4d3f2026-07-29 15:52:22 +040043 - /usr/local/bin/goproxy
Giorgi Lekveishvilicc3e7462026-07-29 14:56:42 +040044 - server
45 - --address=:{{ .Values.port }}
Giorgi Lekveishvili6be4d3f2026-07-29 15:52:22 +040046 - --cacher-dir=/go/pkg/mod
Giorgi Lekveishvilicc3e7462026-07-29 14:56:42 +040047 env:
48 - name: GOMODCACHE
49 value: /go/pkg/mod
Giorgi Lekveishvili4e166dc2026-07-29 15:17:13 +040050 volumeMounts:
51 - name: cache-volume
52 mountPath: /go/pkg/mod
Giorgi Lekveishvili6be4d3f2026-07-29 15:52:22 +040053 securityContext:
54 runAsUser: 65534
55 runAsGroup: 65534
Giorgi Lekveishvili4e166dc2026-07-29 15:17:13 +040056 volumes:
57 - name: cache-volume
58 persistentVolumeClaim:
59 claimName: {{ .Values.persistentVolumeClaimName }}
Giorgi Lekveishvilicc3e7462026-07-29 14:56:42 +040060 tolerations:
61 - key: "pcloud"
62 operator: "Equal"
63 value: "role"
64 effect: "NoSchedule"