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
# 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 | |
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
{{- $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 }} |
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: Pod | |
metadata: | |
creationTimestamp: null | |
labels: | |
run: initcon | |
name: initcon | |
spec: | |
volumes: | |
- name: static-files |
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: Pod | |
metadata: | |
creationTimestamp: null | |
labels: | |
run: initcon | |
name: initcon | |
spec: | |
volumes: | |
- name: static-files |