103 lines
1.8 KiB
YAML
103 lines
1.8 KiB
YAML
|
|
# ---
|
|
# apiVersion: networking.k8s.io/v1
|
|
# kind: Ingress
|
|
# metadata:
|
|
# name: game-2048
|
|
# namespace: futureporn
|
|
# spec:
|
|
# ingressClassName: ngrok
|
|
# rules:
|
|
# - host: "{{ .Values.ngrok.hostname }}"
|
|
# http:
|
|
# paths:
|
|
# - path: /
|
|
# pathType: Prefix
|
|
# backend:
|
|
# service:
|
|
# name: game-2048
|
|
# port:
|
|
# number: 80
|
|
|
|
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: game-2048-http
|
|
namespace: futureporn
|
|
spec:
|
|
entryPoints:
|
|
- web
|
|
routes:
|
|
- match: Host(`game-2048.fp.sbtp.xyz`)
|
|
kind: Rule
|
|
middlewares:
|
|
- name: redirect
|
|
namespace: futureporn
|
|
services:
|
|
- name: game-2048
|
|
port: 80
|
|
|
|
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: game-2048-https
|
|
namespace: futureporn
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: "{{ .Values.certManager.issuer }}"
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- match: Host(`game-2048.fp.sbtp.xyz`)
|
|
kind: Rule
|
|
services:
|
|
- name: game-2048
|
|
namespace: futureporn
|
|
port: 80
|
|
tls:
|
|
secretName: game-2048-tls
|
|
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: game-2048
|
|
namespace: futureporn
|
|
annotations:
|
|
external-dns.alpha.kubernetes.io/hostname: "{{ .Values.game2048.hostname }}"
|
|
spec:
|
|
type: LoadBalancer
|
|
selector:
|
|
app: game-2048
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
targetPort: 80
|
|
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: game-2048
|
|
namespace: futureporn
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: game-2048
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: game-2048
|
|
spec:
|
|
containers:
|
|
- name: game-2048
|
|
image: alexwhen/docker-2048
|
|
ports:
|
|
- name: http
|
|
containerPort: 80
|
|
|