123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- 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/user-data
- ports:
- - containerPort: 8080
- 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: 8080
- 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.ingress.kubernetes.io/client-body-buffer-size: "500m"
- nginx.ingress.kubernetes.io/proxy-connect-timeout: "60s"
- nginx.ingress.kubernetes.io/proxy-read-timeout: "60s"
- nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
- 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
|