blob: 51ba11610ca202ee20718f8eb944dd5f9b970489 [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:
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 Lekveishvili4e166dc2026-07-29 15:17:13 +040045 volumeMounts:
46 - name: cache-volume
47 mountPath: /go/pkg/mod
48 volumes:
49 - name: cache-volume
50 persistentVolumeClaim:
51 claimName: {{ .Values.persistentVolumeClaimName }}
Giorgi Lekveishvilicc3e7462026-07-29 14:56:42 +040052 tolerations:
53 - key: "pcloud"
54 operator: "Equal"
55 value: "role"
56 effect: "NoSchedule"