Auto-generated by Trail System
This commit is contained in:
6
chart/Chart.yaml
Normal file
6
chart/Chart.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: todo-app
|
||||
description: A simple Flask-based Todo App hosted in a Docker container with Helm orchestration. The application exposes a single endpoint at '/' that returns 'Todo List'. Uses minimal dependencies and follows 12-factor principles for containerized deployment.
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "1.0.0"
|
||||
24
chart/templates/deployment.yaml
Normal file
24
chart/templates/deployment.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: flask-todo-app
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: flask-todo-app
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: flask-todo-app
|
||||
spec:
|
||||
containers:
|
||||
- name: flask-todo-app
|
||||
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
|
||||
ports:
|
||||
- containerPort: 5000
|
||||
env:
|
||||
- name: FLASK_APP
|
||||
value: "{{ .Values.env.FLASK_APP }}"
|
||||
- name: DEBUG
|
||||
value: "{{ .Values.env.DEBUG }}"
|
||||
9
chart/templates/service.yaml
Normal file
9
chart/templates/service.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ .Values.service.name }}
|
||||
spec:
|
||||
ports:
|
||||
- port: {{ .Values.service.port }}
|
||||
selector:
|
||||
app: {{ .Values.app.name }}
|
||||
8
chart/values.yaml
Normal file
8
chart/values.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
image:
|
||||
repository: flask-todo-app
|
||||
tag: latest
|
||||
service:
|
||||
port: 5000
|
||||
env:
|
||||
FLASK_APP: app.py
|
||||
DEBUG: "False"
|
||||
Reference in New Issue
Block a user