mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 13:09:53 +00:00
blog
This commit is contained in:
23
michaelthomson/deployment.yaml
Normal file
23
michaelthomson/deployment.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: michaelthomson
|
||||
namespace: michaelthomson
|
||||
labels:
|
||||
app: michaelthomson
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: michaelthomson
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: michaelthomson
|
||||
spec:
|
||||
containers:
|
||||
- image: gitea.michaelthomson.dev/mthomson/michaelthomson.dev:latest
|
||||
name: michaelthomson.dev
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
15
michaelthomson/dns-endpoint.yaml
Normal file
15
michaelthomson/dns-endpoint.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: externaldns.k8s.io/v1alpha1
|
||||
kind: DNSEndpoint
|
||||
metadata:
|
||||
name: michaelthomson.dev
|
||||
namespace: michaelthomson
|
||||
spec:
|
||||
endpoints:
|
||||
- dnsName: michaelthomson.dev
|
||||
recordTTL: 180
|
||||
recordType: CNAME
|
||||
targets:
|
||||
- michaelthomson.ddns.net
|
||||
providerSpecific:
|
||||
- name: external-dns.alpha.kubernetes.io/cloudflare-proxied
|
||||
value: "true"
|
||||
23
michaelthomson/ingress.yaml
Normal file
23
michaelthomson/ingress.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: michaelthomson.dev
|
||||
namespace: michaelthomson.dev
|
||||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||
spec:
|
||||
rules:
|
||||
- host: michaelthomson.dev
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
backend:
|
||||
service:
|
||||
name: michaelthomson
|
||||
port:
|
||||
name: http
|
||||
tls:
|
||||
- hosts:
|
||||
- michaelthomson.dev
|
||||
secretName: letsencrypt-wildcard-cert-michaelthomson.dev
|
||||
12
michaelthomson/service.yaml
Normal file
12
michaelthomson/service.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: michaelthomson
|
||||
namespace: michaelthomson
|
||||
spec:
|
||||
selector:
|
||||
app: michaelthomson
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: http
|
||||
name: http
|
||||
Reference in New Issue
Block a user