Last active
April 8, 2019 07:53
-
-
Save FaKod/3c7a0fc4a13cbc5c3306d413019954c5 to your computer and use it in GitHub Desktop.
Code Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: code-server | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: code-server | |
namespace: code-server | |
spec: | |
ports: | |
- port: 8443 | |
name: https | |
protocol: TCP | |
selector: | |
app: code-server | |
type: ClusterIP | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: code | |
namespace: code-server | |
spec: | |
rules: | |
- host: code.kubeplatform.dev | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: code-server | |
servicePort: 8443 | |
--- | |
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: code-store | |
namespace: code-server | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 10Gi | |
--- | |
apiVersion: apps/v1 | |
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 | |
args: ["--allow-http", "--password=MyPassword"] | |
imagePullPolicy: Always | |
name: code-servery | |
ports: | |
- containerPort: 8443 | |
name: http | |
volumeMounts: | |
- name: code-server-storage | |
mountPath: /root/project | |
volumes: | |
- name: code-server-storage | |
persistentVolumeClaim: | |
claimName: code-store | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment