Add readme for web provider
Also rename sample web provider implemented in Rust to `web-rust`.
This commit is contained in:
21
providers/web/charts/web-rust/.helmignore
Normal file
21
providers/web/charts/web-rust/.helmignore
Normal file
@@ -0,0 +1,21 @@
|
||||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
4
providers/web/charts/web-rust/Chart.yaml
Normal file
4
providers/web/charts/web-rust/Chart.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
name: virtual-kubelet-web
|
||||
version: 0.1.0
|
||||
description: a Helm chart to install virtual kubelet in Kubernetes setup with a web provider
|
||||
|
||||
5
providers/web/charts/web-rust/templates/NOTES.txt
Normal file
5
providers/web/charts/web-rust/templates/NOTES.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
The virtual kubelet is getting deployed on your cluster.
|
||||
|
||||
To verify that virtual kubelet has started, run:
|
||||
|
||||
kubectl --namespace={{ .Release.Namespace }} get pods -l "app={{ template "virtual-kubelet-web.fullname" . }}"
|
||||
16
providers/web/charts/web-rust/templates/_helpers.tpl
Normal file
16
providers/web/charts/web-rust/templates/_helpers.tpl
Normal file
@@ -0,0 +1,16 @@
|
||||
{{/* vim: set filetype=mustache: */}}
|
||||
{{/*
|
||||
Expand the name of the chart.
|
||||
*/}}
|
||||
{{- define "virtual-kubelet-web.name" -}}
|
||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create a default fully qualified app name.
|
||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||
*/}}
|
||||
{{- define "virtual-kubelet-web.fullname" -}}
|
||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
42
providers/web/charts/web-rust/templates/deployment.yaml
Normal file
42
providers/web/charts/web-rust/templates/deployment.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "virtual-kubelet-web.fullname" . }}
|
||||
labels:
|
||||
app: {{ template "virtual-kubelet-web.name" . }}
|
||||
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
||||
release: {{ .Release.Name }}
|
||||
heritage: {{ .Release.Service }}
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ template "virtual-kubelet-web.name" . }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: {{ template "virtual-kubelet-web.name" . }}
|
||||
release: {{ .Release.Name }}
|
||||
spec:
|
||||
containers:
|
||||
- name: webrust
|
||||
image: "{{ .Values.rustwebimage.repository }}:{{ .Values.rustwebimage.tag }}"
|
||||
imagePullPolicy: {{ .Values.rustwebimage.pullPolicy }}
|
||||
ports:
|
||||
- containerPort: {{ .Values.rustwebimage.port }}
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: {{ .Values.rustwebimage.port }}
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: {{ .Values.rustwebimage.port }}
|
||||
- name: virtualkubelet
|
||||
image: "{{ .Values.vkimage.repository }}:{{ .Values.vkimage.tag }}"
|
||||
imagePullPolicy: {{ .Values.vkimage.pullPolicy }}
|
||||
env:
|
||||
- name: WEB_ENDPOINT_URL
|
||||
value: http://localhost:{{ .Values.rustwebimage.port }}
|
||||
command: ["virtual-kubelet"]
|
||||
args: ["--provider", "web", "--nodename", {{ default "web-provider" .Values.env.nodeName | quote }}]
|
||||
11
providers/web/charts/web-rust/values.yaml
Normal file
11
providers/web/charts/web-rust/values.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
rustwebimage:
|
||||
repository: avranju/web-rust
|
||||
tag: latest
|
||||
pullPolicy: Always
|
||||
port: 3000
|
||||
vkimage:
|
||||
repository: avranju/virtual-kubelet
|
||||
tag: latest
|
||||
pullPolicy: Always
|
||||
env:
|
||||
nodeName: virtual-kubelet-web
|
||||
Reference in New Issue
Block a user