imfreedom/k8s-cluster
Clone
Summary
Browse
Changes
Graph
Add an ingress for planet.pidgin.im that redirects to pidgin.im/post
2020-02-11, Gary Kramlich
d1da8131f1c0
Add an ingress for planet.pidgin.im that redirects to pidgin.im/post
---
apiVersion
:
traefik.containo.us/v1alpha1
kind
:
IngressRoute
metadata
:
name
:
gaim
namespace
:
roost
spec
:
entryPoints
:
-
https
routes
:
-
match
:
Host(`gaim.pidgin.im`)
kind
:
Rule
services
:
-
name
:
gaim
port
:
80
middlewares
:
-
name
:
common-headers
tls
:
secretName
:
gaim-tls
---
apiVersion
:
cert-manager.io/v1alpha2
kind
:
Certificate
metadata
:
namespace
:
roost
name
:
gaim-tls
spec
:
secretName
:
gaim-tls
issuerRef
:
name
:
letsencrypt
commonName
:
gaim.pidgin.im
dnsNames
:
-
gaim.pidgin.im
---
apiVersion
:
v1
kind
:
Service
metadata
:
namespace
:
roost
name
:
gaim
labels
:
app
:
gaim
spec
:
ports
:
-
port
:
80
protocol
:
TCP
selector
:
app
:
gaim
---
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
namespace
:
roost
name
:
gaim
labels
:
app
:
gaim
spec
:
podSelector
:
matchLabels
:
app
:
gaim
ingress
:
-
from
:
-
namespaceSelector
:
matchLabels
:
name
:
kube-public
podSelector
:
matchLabels
:
app
:
traefik
role
:
controller
ports
:
-
port
:
80
protocol
:
TCP
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
namespace
:
roost
name
:
gaim
labels
:
app
:
gaim
spec
:
replicas
:
2
selector
:
matchLabels
:
app
:
gaim
template
:
metadata
:
labels
:
app
:
gaim
spec
:
affinity
:
podAntiAffinity
:
preferredDuringSchedulingIgnoredDuringExecution
:
-
podAffinityTerm
:
labelSelector
:
matchExpressions
:
-
key
:
app
operator
:
In
values
:
-
gaim
topologyKey
:
failure-domain.beta.kubernetes.io/region
weight
:
100
containers
:
-
name
:
gaim
image
:
rwgrim/gaim-www:latest
imagePullPolicy
:
Always
ports
:
-
containerPort
:
80
name
:
http
resources
:
limits
:
cpu
:
50m
memory
:
96Mi
requests
:
cpu
:
10m
memory
:
64Mi
---