You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
952 B
57 lines
952 B
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: kuard
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: kuard
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: kuard
|
|
spec:
|
|
containers:
|
|
- image: gcr.io/kuar-demo/kuard-amd64:1
|
|
imagePullPolicy: Always
|
|
name: kuard
|
|
ports:
|
|
- containerPort: 8080
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: kuard
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8080
|
|
protocol: TCP
|
|
selector:
|
|
app: kuard
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: kuard
|
|
annotations:
|
|
kubernetes.io/ingress.class: nginx
|
|
cert-manager.io/issuer: letsencrypt-prod
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- kuard.$DOMAIN
|
|
secretName: kuard-tls
|
|
rules:
|
|
- host: kuard.$DOMAIN
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: kuard
|
|
port:
|
|
number: 80
|