-
Notifications
You must be signed in to change notification settings - Fork 1
/
golang-codeready-workspace-deployment.yml
49 lines (49 loc) · 1.25 KB
/
golang-codeready-workspace-deployment.yml
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
apiVersion: v1
kind: Service
metadata:
labels:
name: golang-codeready-workspace
name: golang-codeready-workspace
namespace: codeready-workspace
spec:
ports:
# the port that this service should serve on
- port: 8080
protocol: TCP
targetPort: 8080
nodePort: 30001
# label keys and values that must match in order to receive traffic for this service
selector:
app: golang-codeready-workspace
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: golang-codeready-workspace
name: golang-codeready-workspace
namespace: codeready-workspace
spec:
replicas: 1
selector:
matchLabels:
app: golang-codeready-workspace
template:
metadata:
creationTimestamp: null
labels:
app: golang-codeready-workspace
spec:
containers:
- image: quay-registry.lab.example.com/godev/golang-code-server:v1.1
# image also pulled from quay.io/alberthua/golang-code-server:v1.1
imagePullPolicy: IfNotPresent
name: golang-codeready-workspace
ports:
- containerPort: 8080
protocol: TCP
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30