2019-03-18 16:44:08 +01:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Namespace
|
|
|
|
metadata:
|
|
|
|
name: code-server
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: code-server
|
|
|
|
namespace: code-server
|
|
|
|
spec:
|
|
|
|
ports:
|
2019-08-08 18:21:45 +02:00
|
|
|
- port: 8080
|
2019-03-18 16:44:08 +01:00
|
|
|
name: https
|
|
|
|
protocol: TCP
|
|
|
|
selector:
|
|
|
|
app: code-server
|
|
|
|
type: ClusterIP
|
|
|
|
---
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: code-server
|
|
|
|
name: code-server
|
|
|
|
namespace: code-server
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: code-server
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: code-server
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- image: codercom/code-server
|
|
|
|
imagePullPolicy: Always
|
|
|
|
name: code-server
|
|
|
|
ports:
|
2019-08-08 18:21:45 +02:00
|
|
|
- containerPort: 8080
|
2019-03-18 16:44:08 +01:00
|
|
|
name: https
|