-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from abolfazl8131/Abolfazl/models-update
Abolfazl/models update
- Loading branch information
Showing
18 changed files
with
275 additions
and
97 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
Binary file not shown.
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
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
apiVersion: v2 | ||
name: my-helm | ||
name: MyHelm | ||
description: A Helm chart for Kubernetes | ||
version: 0.1.0 | ||
appVersion: "1.0" |
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 |
---|---|---|
@@ -1,22 +1,21 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "my-helm.fullname" . }} | ||
name: {{ include "MyHelm.fullname" . }}-web | ||
spec: | ||
replicas: {{ .Values.web.replicas }} | ||
selector: | ||
matchLabels: | ||
app: {{ include "my-helm.name" . }} | ||
template: | ||
metadata: | ||
labels: | ||
app: {{ include "my-helm.name" . }} | ||
app: {{ include "MyHelm.name" . }} | ||
spec: | ||
containers: | ||
- name: {{ include "my-helm.name" . }} | ||
- name: web | ||
image: {{ .Values.web.image }} | ||
ports: | ||
- containerPort: {{ .Values.web.service.port }} | ||
- containerPort: {{ .Values.web.service.targetPort }} | ||
env: | ||
- name: ENV1 | ||
value: Hi | ||
{{- range .Values.web.env }} | ||
- name: {{ .name }} | ||
value: {{ .value }} | ||
{{- 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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
{{/* | ||
Helper Template | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "my-helm.name" -}} | ||
{{- .Chart.Name | replace "-" "_" | quote -}} | ||
{{- define "MyHelm.name" -}} | ||
{{- .Chart.Name | replace "-" "_" | lower -}} | ||
{{- end -}} | ||
|
||
{{- define "my-helm.fullname" -}} | ||
{{/* | ||
Create a default fully qualified domain name | ||
*/}} | ||
{{- define "MyHelm.fullname" -}} | ||
{{- if .Chart.Name -}} | ||
{{- .Release.Name | default "my-release" | lower | quote }}-{{ .Chart.Name | lower | quote }} | ||
{{- .Release.Name | lower | replace "-" "_" | trimSuffix "-" | append (include "MyHelm.name" . | lower) | toLower -}} | ||
{{- else -}} | ||
{{- .Release.Name | default "my-release" | lower | quote }} | ||
{{- .Release.Name | lower -}} | ||
{{- 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ include "my-helm.fullname" . }}-secret | ||
name: {{ include "MyHelm.fullname" . }}-web-env | ||
type: Opaque | ||
data: | ||
ENV1: {{ .Values.web.env[0].value | b64enc | quote }} | ||
ENV1: {{ .Values.web.env | toJson | b64enc | quote }} |
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: {{ include "my-helm.fullname" . }} | ||
name: {{ include "MyHelm.fullname" . }}-web | ||
spec: | ||
type: ClusterIP | ||
ports: | ||
- port: {{ .Values.web.service.port }} | ||
- port: {{ .Values.web.service.targetPort }} | ||
selector: | ||
app: {{ include "my-helm.name" . }} | ||
app: {{ include "MyHelm.name" . }} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
web: | ||
image: nginx | ||
service: | ||
port: 80 | ||
targetPort: 80 | ||
replicas: 1 | ||
persistence: | ||
size: 1Gi | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.