-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# 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 | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v2 | ||
name: sshd | ||
description: sshd helm chart | ||
version: 1.0.0 | ||
dependencies: | ||
- name: generic | ||
version: 1.0.0 | ||
repository: https://charts.kool.dev |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if .Values.generic.ingresses }} | ||
Ingresses: | ||
{{- range $ingress := .Values.generic.ingresses }} | ||
{{- range $host := .hosts }} | ||
{{- range .paths }} | ||
http{{ if $ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- else if .Values.generic.services }} | ||
Services: | ||
{{- $fullName := include "laravel.fullname" . -}} | ||
{{- range $service := .Values.generic.services }} | ||
{{- if .fullName }} | ||
{{ .fullName }} | ||
{{- else }} | ||
{{ $fullName }}-{{ .name | default "default" }}:{{ .port }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{/* vim: set filetype=mustache: */}} | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "sshd.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). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "sshd.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
generic: | ||
nameOverride: sshd | ||
|
||
containers: | ||
app: | ||
image: | ||
repository: kooldev/sshd | ||
pullPolicy: Always | ||
tag: latest | ||
ports: | ||
- containerPort: 22 | ||
livenessProbe: | ||
tcpSocket: | ||
port: 22 | ||
envFrom: | ||
- secretRef: | ||
name: env | ||
|
||
secrets: | ||
- name: env | ||
data: | ||
AUTHORIZED_KEYS: | | ||
ssh-rsa ... | ||
ssh-rsa ... | ||
services: | ||
default: | ||
type: ClusterIP | ||
port: 22 | ||
|
||
# ingresses: | ||
# - hosts: | ||
# - host: chart-example.local | ||
# paths: | ||
# - serviceName: default | ||
# servicePort: 80 | ||
# # annotations: | ||
# # kubernetes.io/ingress.class: nginx | ||
# # tls: | ||
# # - secretName: chart-example-tls | ||
# # hosts: | ||
# # - chart-example.local |