Agregando los ultimos detalles a la documentacion y al deployment.
This commit is contained in:
61
infrastructure/04-deployment.yaml
Normal file
61
infrastructure/04-deployment.yaml
Normal file
@ -0,0 +1,61 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: vscode-deployment
|
||||
namespace: vscode-tunnel
|
||||
labels:
|
||||
app: vscode
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: vscode
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxUnavailable: 1
|
||||
maxSurge: 0
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: vscode
|
||||
spec:
|
||||
containers:
|
||||
- name: vscode-container
|
||||
image: aleleba/vscode
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: HOME_USER
|
||||
value: aleleba
|
||||
- name: VSCODE_TUNNEL_NAME
|
||||
value: kubernetes-tunnel
|
||||
resources:
|
||||
requests:
|
||||
memory: 2Gi
|
||||
cpu: '1'
|
||||
limits:
|
||||
memory: 4Gi
|
||||
cpu: '2'
|
||||
volumeMounts:
|
||||
- name: nfs-vol
|
||||
mountPath: /home/aleleba/projects
|
||||
# - name: nvm-script
|
||||
# mountPath: /usr/bin/custom-scripts/01-nvm.sh
|
||||
# subPath: 01-nvm.sh
|
||||
# readOnly: true
|
||||
# - name: extensions-config
|
||||
# mountPath: /home/extensions.json
|
||||
# subPath: extensions.json
|
||||
# readOnly: true
|
||||
volumes:
|
||||
- name: nfs-vol
|
||||
persistentVolumeClaim:
|
||||
claimName: pvc-nfs-synology
|
||||
# - name: nvm-script
|
||||
# configMap:
|
||||
# name: nvm-install-script
|
||||
# defaultMode: 0555
|
||||
# - name: extensions-config
|
||||
# configMap:
|
||||
# name: vscode-tunnel-extensions
|
||||
# defaultMode: 0444
|
Reference in New Issue
Block a user