2020-09-01 14:30:27 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: goplayground
|
|
|
|
namespace: goplayground
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: web
|
|
|
|
name: web
|
|
|
|
selector:
|
|
|
|
app: goplayground
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: goplayground
|
|
|
|
namespace: goplayground
|
|
|
|
spec:
|
2020-10-19 05:05:48 +00:00
|
|
|
replicas: 1
|
2020-09-01 14:30:27 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: goplayground
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: goplayground
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: web
|
2024-02-21 09:06:24 +00:00
|
|
|
image: x1unix/go-playground:1.15.1
|
2020-09-01 14:30:27 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
ports:
|
|
|
|
- containerPort: 8000
|
|
|
|
name: web
|
2021-05-21 10:56:07 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: 20Mi
|
|
|
|
requests:
|
|
|
|
memory: 20Mi
|
2020-09-01 14:30:27 +00:00
|
|
|
---
|
2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-09-01 14:30:27 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: goplayground
|
|
|
|
namespace: goplayground
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
2022-05-31 12:55:15 +00:00
|
|
|
kubernetes.io/ingress.class: traefik
|
|
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
2022-10-24 06:20:16 +00:00
|
|
|
ingress.kubernetes.io/ssl-redirect: "true"
|
|
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
2020-09-01 14:30:27 +00:00
|
|
|
spec:
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- go.cluster.fun
|
|
|
|
secretName: goplayground-ingress
|
|
|
|
rules:
|
|
|
|
- host: go.cluster.fun
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-09-01 14:30:27 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: goplayground
|
|
|
|
port:
|
|
|
|
number: 80
|
2020-09-01 14:30:27 +00:00
|
|
|
|