[bugfix] works
This commit is contained in:
parent
97625f5560
commit
34e5ffe614
|
@ -13,6 +13,7 @@ spec:
|
|||
- protocol: TCP
|
||||
name: websecure
|
||||
port: 8443
|
||||
targetPort: 443
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: traefik
|
||||
|
@ -57,9 +58,9 @@ spec:
|
|||
- --certificatesresolvers.myresolver.acme.email={EMAIL}
|
||||
- --certificatesresolvers.myresolver.acme.storage=acme.json
|
||||
env:
|
||||
- name: CF_API_EMAIL
|
||||
- name: CLOUDFLARE_EMAIL
|
||||
value: {CF_API_EMAIL}
|
||||
- name: CF_API_Key
|
||||
- name: CLOUDFLARE_API_KEY
|
||||
value: {CF_API_KEY}
|
||||
ports:
|
||||
- name: web
|
||||
|
|
55
devel/k3s/whomai-cf.yaml
Normal file
55
devel/k3s/whomai-cf.yaml
Normal file
|
@ -0,0 +1,55 @@
|
|||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: gitea
|
||||
namespace: default
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
# - web
|
||||
routes:
|
||||
- match: Host(`example.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: whoami
|
||||
port: 80
|
||||
tls:
|
||||
certResolver: myresolver
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: whoami
|
||||
|
||||
spec:
|
||||
ports:
|
||||
- protocol: TCP
|
||||
name: web
|
||||
port: 80
|
||||
selector:
|
||||
app: whoami
|
||||
---
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
namespace: default
|
||||
name: whoami
|
||||
labels:
|
||||
app: whoami
|
||||
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: whoami
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: whoami
|
||||
spec:
|
||||
containers:
|
||||
- name: whoami
|
||||
image: traefik/whoami
|
||||
ports:
|
||||
- name: web
|
||||
containerPort: 80
|
Loading…
Reference in New Issue
Block a user