Skip to content

Commit

Permalink
push of busybox-httpd
Browse files Browse the repository at this point in the history
  • Loading branch information
alecs committed Apr 18, 2024
1 parent 196f38e commit d95e33d
Show file tree
Hide file tree
Showing 19 changed files with 580 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>helm-charts</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-slate
6 changes: 6 additions & 0 deletions charts/busybox-httpd/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
appVersion: 0.1.0
description: A helm chart for busybox-httpd
name: busybox-httpd
type: application
version: 0.1.0
30 changes: 30 additions & 0 deletions charts/busybox-httpd/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: '{{ .Release.Name }}-webserver'
labels:
meta.helm.sh/component: webserver
meta.helm.sh/project: '{{ .Chart.Name }}'
meta.helm.sh/release: '{{ .Release.Name }}'
meta.helm.sh/resource: deployment
spec:
replicas: 1
selector:
matchLabels:
meta.helm.sh/component: webserver
meta.helm.sh/release: '{{ .Release.Name }}'
meta.helm.sh/resource: deployment
template:
metadata:
labels:
meta.helm.sh/component: webserver
meta.helm.sh/release: '{{ .Release.Name }}'
meta.helm.sh/resource: deployment
spec:
containers:
- name: webserver
image: '{{ .Values.repository.image }}{{ if ne .Values.repository.tag "" }}:{{ .Values.repository.tag }}{{ end }}'
ports:
- name: '{{ .Release.Name }}-webserver'
containerPort: 3000

42 changes: 42 additions & 0 deletions charts/busybox-httpd/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "busybox-httpd.fullname" . -}}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{ include "busybox-httpd.labels" . | indent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
{{- if .Values.ingress.ingressClassName }}
ingressClassName: {{ .Values.ingress.ingressClassName | quote }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ . }}
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}-webserver
port:
name: {{ .Release.Name }}-webserver-3000
{{- end }}
{{- end }}
{{- end }}
17 changes: 17 additions & 0 deletions charts/busybox-httpd/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: '{{ .Release.Name }}-webserver'
labels:
meta.helm.sh/component: webserver
meta.helm.sh/project: '{{ .Chart.Name }}'
meta.helm.sh/release: '{{ .Release.Name }}'
spec:
selector:
meta.helm.sh/component: webserver
meta.helm.sh/release: '{{ .Release.Name }}'
ports:
- protocol: TCP
port: 3000
targetPort: 3000
name: {{ .Release.Name }}-webserver-3000
5 changes: 5 additions & 0 deletions charts/busybox-httpd/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repository:
image: sysopsro/busybox-httpd
tag: ""

ingress:
3 changes: 3 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_site
.sass-cache
.jekyll-metadata
28 changes: 28 additions & 0 deletions docs/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
source "https://rubygems.org"
ruby RUBY_VERSION

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", ">= 3.6.3"
gem "ffi", ">= 1.9.24"
gem "nokogiri", ">= 1.8.2"

# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem "minima", "~> 2.0"
gem "github-pages", group: :jekyll_plugins


# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-feed", "~> 0.6"
end
Loading

0 comments on commit d95e33d

Please sign in to comment.