mirror of
https://github.com/coder/code-server.git
synced 2024-12-05 07:13:06 +08:00
d7d3368cc2
Signed-off-by: yeya24 <yb532204897@gmail.com>
44 lines
722 B
YAML
44 lines
722 B
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: code-server
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: code-server
|
|
namespace: code-server
|
|
spec:
|
|
ports:
|
|
- port: 8080
|
|
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:v2
|
|
imagePullPolicy: Always
|
|
name: code-server
|
|
ports:
|
|
- containerPort: 8080
|
|
name: https
|