-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s.yaml
92 lines (92 loc) · 1.77 KB
/
k8s.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: homedir
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 4Gi
storageClassName: okteto-standard
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: dev-env
name: dev-env
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: dev-env
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: dev-env
spec:
containers:
- image: ghcr.io/lemonteaa/dev-env-vscode-k8s:main
imagePullPolicy: Always
name: fatdevenv
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /home/coder
name: mydir
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
runAsUser: 0
terminationGracePeriodSeconds: 30
volumes:
- name: mydir
persistentVolumeClaim:
claimName: homedir
---
apiVersion: v1
kind: Service
metadata:
annotations:
dev.okteto.com/auto-ingress: "true"
labels:
app: dev-env
name: test-serv
spec:
ipFamilies:
- IPv4
ipFamilyPolicy: SingleStack
ports:
- name: vscode-port
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: dev-env
sessionAffinity: None
type: ClusterIP
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
dev.okteto.com/generate-host: "true"
name: test-serv
spec:
rules:
- http:
paths:
- backend:
serviceName: test-serv
servicePort: 8080
path: /