mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-25 22:18:53 +07:00
refactor(blog): use app-template chart
This commit is contained in:
parent
d2dd44920f
commit
22f07807d4
6
apps/blog/Chart.yaml
Normal file
6
apps/blog/Chart.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
name: blog
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
- name: app-template
|
||||
version: 2.2.0
|
||||
repository: https://bjw-s.github.io/helm-charts
|
@ -1,21 +0,0 @@
|
||||
# TESTING
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: blog
|
||||
name: blog
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: blog
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: blog
|
||||
spec:
|
||||
containers:
|
||||
- name: blog
|
||||
image: registry.khuedoan.com/blog:latest
|
||||
imagePullPolicy: Always
|
@ -1,24 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: blog
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
external-dns.alpha.kubernetes.io/target: homelab-tunnel.khuedoan.com
|
||||
external-dns.alpha.kubernetes.io/cloudflare-proxied: 'true'
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: &host www.khuedoan.com
|
||||
http:
|
||||
paths:
|
||||
- pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: blog
|
||||
port:
|
||||
name: http
|
||||
tls:
|
||||
- hosts:
|
||||
- *host
|
||||
secretName: blog-tls-certificate
|
@ -1,7 +0,0 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
@ -1,15 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: blog
|
||||
name: blog
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: blog
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
34
apps/blog/values.yaml
Normal file
34
apps/blog/values.yaml
Normal file
@ -0,0 +1,34 @@
|
||||
app-template:
|
||||
controllers:
|
||||
main:
|
||||
containers:
|
||||
main:
|
||||
image:
|
||||
repository: registry.khuedoan.com/blog
|
||||
tag: latest
|
||||
service:
|
||||
main:
|
||||
ports:
|
||||
http:
|
||||
port: 80
|
||||
protocol: HTTP
|
||||
ingress:
|
||||
main:
|
||||
enabled: true
|
||||
className: nginx
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
external-dns.alpha.kubernetes.io/target: homelab-tunnel.khuedoan.com
|
||||
external-dns.alpha.kubernetes.io/cloudflare-proxied: 'true'
|
||||
hosts:
|
||||
- host: &host www.khuedoan.com
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
service:
|
||||
name: main
|
||||
port: http
|
||||
tls:
|
||||
- hosts:
|
||||
- *host
|
||||
secretName: blog-tls-certificate
|
Loading…
Reference in New Issue
Block a user