2020-07-04 18:42:10 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: docker-config
|
|
|
|
namespace: paradoxfox
|
|
|
|
annotations:
|
|
|
|
kube-1password: i6ngbk5zf4k52xgwdwnfup5bby
|
|
|
|
kube-1password/vault: Kubernetes
|
|
|
|
kube-1password/secret-text-key: .dockerconfigjson
|
|
|
|
type: kubernetes.io/dockerconfigjson
|
|
|
|
data:
|
|
|
|
.dockerconfigjson: e30=
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
2020-07-08 10:50:11 +00:00
|
|
|
kind: Secret
|
|
|
|
metadata:
|
|
|
|
name: etsy-token
|
|
|
|
namespace: paradoxfox
|
|
|
|
annotations:
|
|
|
|
kube-1password: akkchysgrvhawconx63plt3xgy
|
|
|
|
kube-1password/vault: Kubernetes
|
|
|
|
kube-1password/secret-text-key: password
|
|
|
|
stringData:
|
|
|
|
password: ""
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
2020-07-04 18:42:10 +00:00
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: paradoxfox
|
|
|
|
namespace: paradoxfox
|
|
|
|
spec:
|
|
|
|
type: ClusterIP
|
|
|
|
ports:
|
|
|
|
- port: 80
|
2020-07-08 10:50:11 +00:00
|
|
|
targetPort: 443
|
2020-07-04 18:42:10 +00:00
|
|
|
name: web
|
|
|
|
selector:
|
|
|
|
app: paradoxfox
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: paradoxfox
|
|
|
|
namespace: paradoxfox
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: paradoxfox
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: paradoxfox
|
|
|
|
spec:
|
|
|
|
imagePullSecrets:
|
|
|
|
- name: docker-config
|
|
|
|
containers:
|
|
|
|
- name: web
|
|
|
|
image: docker.cluster.fun/private/paradoxfox:latest
|
|
|
|
imagePullPolicy: Always
|
|
|
|
ports:
|
2020-07-08 10:50:11 +00:00
|
|
|
- containerPort: 443
|
2020-07-04 18:42:10 +00:00
|
|
|
name: web
|
2020-07-08 10:50:11 +00:00
|
|
|
env:
|
|
|
|
- name: ETSY_TOKEN
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: etsy-token
|
|
|
|
key: password
|
2020-07-04 18:42:10 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: 200Mi
|
|
|
|
requests:
|
|
|
|
memory: 200Mi
|
|
|
|
---
|
2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-07-04 18:42:10 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: paradoxfox
|
|
|
|
namespace: paradoxfox
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
|
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
|
|
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
|
|
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
|
|
|
spec:
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- paradoxfox.space
|
|
|
|
secretName: paradoxfox-ingress
|
|
|
|
rules:
|
|
|
|
- host: paradoxfox.space
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-07-04 18:42:10 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: paradoxfox
|
|
|
|
port:
|
|
|
|
number: 80
|
2020-07-04 18:42:10 +00:00
|
|
|
|
|
|
|
---
|
2021-10-16 06:31:19 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2020-07-04 18:42:10 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
|
|
|
name: paradoxfox-www
|
|
|
|
namespace: paradoxfox
|
|
|
|
annotations:
|
|
|
|
cert-manager.io/cluster-issuer: letsencrypt
|
|
|
|
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
|
|
|
|
traefik.ingress.kubernetes.io/redirect-entry-point: https
|
|
|
|
traefik.ingress.kubernetes.io/redirect-permanent: "true"
|
|
|
|
spec:
|
|
|
|
tls:
|
|
|
|
- hosts:
|
|
|
|
- www.paradoxfox.space
|
|
|
|
secretName: paradoxfox-www-ingress
|
|
|
|
rules:
|
|
|
|
- host: www.paradoxfox.space
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- path: /
|
2021-10-16 06:31:19 +00:00
|
|
|
pathType: ImplementationSpecific
|
2020-07-04 18:42:10 +00:00
|
|
|
backend:
|
2021-10-16 06:31:19 +00:00
|
|
|
service:
|
|
|
|
name: paradoxfox
|
|
|
|
port:
|
|
|
|
number: 80
|