Use compose-go https://github.com/compose-spec/compose-go to make Katenary parsing compose file the official way. Add labels: - `volume-from` (with `same-pod`) to avoid volume repetition - `ignore` to ignore a service - `mapenv` (replaces the `env-to-service`) to map environment to helm variable (as a template string) - `secret-vars` declares variables as secret values More: - Now, environment (as secret vars) are set in values.yaml - Ingress has got annotations in values.yaml - Probes (liveness probe) are improved - fixed code to optimize - many others fixes about path, bad volume check, refactorisation, tests...
34 lines
855 B
YAML
34 lines
855 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: '{{ .Release.Name }}-blog'
|
|
labels:
|
|
katenary.io/component: blog
|
|
katenary.io/project: ghost
|
|
katenary.io/release: '{{ .Release.Name }}'
|
|
annotations:
|
|
katenary.io/docker-compose-sha1: 0c2bbf548ff569c3dc5d77dc158e98bbe86fb5d4
|
|
katenary.io/version: master
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
katenary.io/component: blog
|
|
katenary.io/release: '{{ .Release.Name }}'
|
|
template:
|
|
metadata:
|
|
labels:
|
|
katenary.io/component: blog
|
|
katenary.io/release: '{{ .Release.Name }}'
|
|
spec:
|
|
containers:
|
|
- name: blog
|
|
image: '{{ .Values.blog.image }}'
|
|
ports:
|
|
- name: blog
|
|
containerPort: 2368
|
|
env:
|
|
- name: url
|
|
value: http://{{ .Values.blog.ingress.host }}
|
|
|