1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: dashy
- spec:
- replicas: 1
- selector:
- matchLabels:
- name: dashy
- template:
- metadata:
- labels:
- nginx: backend
- name: dashy
- spec:
- containers:
- - name: dashy
- image: lissy93/dashy
- volumeMounts:
- - name: config-volume
- mountPath: /app/public
- ports:
- - containerPort: 80
- name: http
- volumes:
- - name: config-volume
- configMap:
- name: dashy
- items:
- - key: conf.yml
- path: conf.yml
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: dashy
- spec:
- type: ClusterIP
- ipFamilyPolicy: PreferDualStack
- selector:
- name: dashy
- ports:
- - protocol: TCP
- port: 80
- targetPort: 80
- name: http
- ---
- apiVersion: networking.k8s.io/v1
- kind: Ingress
- metadata:
- name: dashy-ingress
- annotations:
- cert-manager.io/cluster-issuer: "letsencrypt"
- acme.cert-manager.io/http01-edit-in-place: "true"
- nginx.org/client-max-body-size: "500m"
- nginx.org/proxy-connect-timeout: "60s"
- nginx.org/proxy-read-timeout: "60s"
- # Uncomment to allow solving HTTP01 challenge
- #ingress.kubernetes.io/ssl-redirect: "false"
- #nginx.org/redirect-to-https: "false"
- spec:
- tls:
- - hosts:
- - dashy.dodges.it
- secretName: dashy-le-secret
- rules:
- - host: dashy.dodges.it
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: dashy
- port:
- number: 80
- ingressClassName: nginx
|