| giolekva | e55bfe5 | 2022-05-16 22:15:13 +0400 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: rpuppy |
| 5 | namespace: {{ .Release.Namespace }} |
| 6 | spec: |
| Giorgi Lekveishvili | fab9bf4 | 2023-05-19 11:18:02 +0400 | [diff] [blame] | 7 | type: ClusterIP |
| giolekva | e55bfe5 | 2022-05-16 22:15:13 +0400 | [diff] [blame] | 8 | selector: |
| 9 | app: rpuppy |
| 10 | ports: |
| 11 | - name: http |
| 12 | port: 80 |
| 13 | targetPort: http |
| 14 | protocol: TCP |
| Giorgi Lekveishvili | fab9bf4 | 2023-05-19 11:18:02 +0400 | [diff] [blame] | 15 | --- |
| 16 | apiVersion: cert-manager.io/v1 |
| 17 | kind: Certificate |
| 18 | metadata: |
| 19 | name: rpuppy |
| 20 | namespace: {{ .Release.Namespace }} |
| 21 | spec: |
| 22 | secretName: cert-rpuppy |
| 23 | dnsNames: |
| 24 | - {{ .Values.domain }} |
| 25 | issuerRef: |
| 26 | kind: ClusterIssuer |
| 27 | name: {{ .Values.certificateIssuer}} |
| 28 | --- |
| 29 | apiVersion: networking.k8s.io/v1 |
| 30 | kind: Ingress |
| 31 | metadata: |
| 32 | name: ingress |
| 33 | namespace: {{ .Release.Namespace }} |
| Giorgi Lekveishvili | 0610777 | 2023-05-19 15:36:57 +0400 | [diff] [blame] | 34 | annotations: |
| 35 | acme.cert-manager.io/http01-edit-in-place: "true" |
| Giorgi Lekveishvili | fab9bf4 | 2023-05-19 11:18:02 +0400 | [diff] [blame] | 36 | # cert-manager.io/cluster-issuer: "letsencrypt-prod" |
| Giorgi Lekveishvili | fab9bf4 | 2023-05-19 11:18:02 +0400 | [diff] [blame] | 37 | spec: |
| 38 | ingressClassName: {{ .Values.ingressClassName }} |
| 39 | tls: |
| 40 | - hosts: |
| 41 | - {{ .Values.domain }} |
| 42 | secretName: cert-rpuppy |
| 43 | rules: |
| 44 | - host: {{ .Values.domain }} |
| 45 | http: |
| 46 | paths: |
| 47 | - path: / |
| 48 | pathType: Prefix |
| 49 | backend: |
| 50 | service: |
| 51 | name: rpuppy |
| 52 | port: |
| 53 | name: http |
| giolekva | e55bfe5 | 2022-05-16 22:15:13 +0400 | [diff] [blame] | 54 | --- |
| 55 | apiVersion: apps/v1 |
| 56 | kind: Deployment |
| 57 | metadata: |
| 58 | name: rpuppy |
| 59 | namespace: {{ .Release.Namespace }} |
| 60 | spec: |
| 61 | selector: |
| 62 | matchLabels: |
| 63 | app: rpuppy |
| 64 | replicas: 1 |
| 65 | template: |
| 66 | metadata: |
| 67 | labels: |
| 68 | app: rpuppy |
| 69 | spec: |
| 70 | containers: |
| 71 | - name: rpuppy |
| 72 | image: {{ .Values.image.repository }}:{{ .Values.image.tag }} |
| 73 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 74 | ports: |
| 75 | - name: http |
| 76 | containerPort: 8080 |
| 77 | protocol: TCP |
| 78 | command: ["rpuppy", "--port=8080"] |
| 79 | resources: |
| 80 | requests: |
| 81 | memory: "10Mi" |
| 82 | cpu: "10m" |
| 83 | limits: |
| 84 | memory: "20Mi" |
| 85 | cpu: "100m" |
| 86 | tolerations: |
| 87 | - key: "pcloud" |
| 88 | operator: "Equal" |
| 89 | value: "role" |
| 90 | effect: "NoSchedule" |