Skip to content

Instantly share code, notes, and snippets.

View YoucefGuichi's full-sized avatar
🏠
Working from home

Youcef Guichi YoucefGuichi

🏠
Working from home
  • Gimlet.io
  • Budapest
  • 14:50 (UTC +02:00)
  • X @Yguichi
View GitHub Profile
# sh vcluster.sh bublebee-vcluster youcef 600Mi 2000m 300Mi 1000m
VCLUSTER=$1
NAMESPACE=$2
MEMORY_LIMIT=$3
CPU_LIMIT=$4
MEMORY_REQUEST=$5
CPU_REQUEST=$6
{{- $websiteDirectory := regexFind "([^\\/]+$)" .Values.staticSite.gitCloneUrl | replace ".git" "" }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "static-site.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: initcon
name: initcon
spec:
volumes:
- name: static-files
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: initcon
name: initcon
spec:
volumes:
- name: static-files