Added resource requests to theia container

Also added scripts to deploy and destroy theia in K8s
This commit is contained in:
nsingh@pivotal.io
2019-06-25 06:39:32 -07:00
parent b9784744f0
commit c0e87564db
3 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
kubectl delete deployment theia-spring-boot
kubectl delete service theia-spring-boot

View File

@@ -29,7 +29,7 @@ spec:
app: theia-spring-boot
spec:
securityContext:
fsGroup: 1000
fsGroup: 3000
containers:
- name: theia-spring-boot
image: theia-spring-boot
@@ -39,6 +39,10 @@ spec:
volumeMounts:
- name: source
mountPath: /home/project
resources:
requests:
cpu: "2000m"
memory: 1000M
- name: git-sync
image: k8s.gcr.io/git-sync:v3.0.1
volumeMounts:

View File

@@ -0,0 +1,4 @@
kubectl apply -f deploy.yml
kubectl get deployments
kubectl get pods
kubectl get services