apiVersion: v1
kind: Namespace
metadata:
name: code-server
---
kind: Service
namespace: code-server
spec:
ports:
- port: 8080
name: https
protocol: TCP
selector:
app: code-server
type: ClusterIP
apiVersion: extensions/v1beta1
kind: Deployment
labels:
matchLabels:
replicas: 1
template:
containers:
- image: codercom/code-server:v2
imagePullPolicy: Always
- containerPort: 8080