This commit is contained in:
Marcus Noble 2020-10-14 09:40:45 +01:00
parent f26d02ca7f
commit ff99e577cd
1 changed files with 72 additions and 0 deletions

72
manifests/jq.yaml Normal file
View File

@ -0,0 +1,72 @@
apiVersion: v1
kind: Namespace
metadata:
name: jq
---
apiVersion: v1
kind: Service
metadata:
name: jq
namespace: jq
spec:
type: ClusterIP
ports:
- port: 80
targetPort: web
name: web
selector:
app: jq
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jq
namespace: jq
spec:
replicas: 1
selector:
matchLabels:
app: jq
template:
metadata:
labels:
app: jq
spec:
imagePullSecrets:
- name: docker-config
containers:
- name: web
image: binlab/jqplay:latest
imagePullPolicy: Always
ports:
- containerPort: 80
name: web
resources:
limits:
memory: 100Mi
requests:
memory: 100Mi
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: jq
namespace: jq
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:
- jq.cluster.fun
secretName: jq-ingress
rules:
- host: jq.cluster.fun
http:
paths:
- path: /
backend:
serviceName: jq
servicePort: 80