| giolekva | 01eb879 | 2020-04-27 16:42:38 +0400 | [diff] [blame] | 1 | --- |
| 2 | apiVersion: v1 |
| 3 | kind: Namespace |
| 4 | metadata: |
| 5 | name: app-rpuppy |
| 6 | --- |
| giolekva | 01eb879 | 2020-04-27 16:42:38 +0400 | [diff] [blame] | 7 | apiVersion: v1 |
| giolekva | d972536 | 2021-07-14 21:03:11 +0400 | [diff] [blame] | 8 | kind: Service |
| giolekva | 01eb879 | 2020-04-27 16:42:38 +0400 | [diff] [blame] | 9 | metadata: |
| 10 | name: rpuppy |
| 11 | namespace: app-rpuppy |
| 12 | spec: |
| 13 | type: ClusterIP |
| 14 | selector: |
| 15 | app: rpuppy |
| 16 | ports: |
| giolekva | d972536 | 2021-07-14 21:03:11 +0400 | [diff] [blame] | 17 | - name: http |
| 18 | port: 80 |
| 19 | targetPort: http |
| 20 | protocol: TCP |
| giolekva | 01eb879 | 2020-04-27 16:42:38 +0400 | [diff] [blame] | 21 | --- |
| giolekva | d972536 | 2021-07-14 21:03:11 +0400 | [diff] [blame] | 22 | apiVersion: networking.k8s.io/v1 |
| 23 | kind: Ingress |
| giolekva | a7e37d7 | 2020-04-27 22:16:24 +0400 | [diff] [blame] | 24 | metadata: |
| 25 | name: ingress |
| 26 | namespace: app-rpuppy |
| giolekva | d972536 | 2021-07-14 21:03:11 +0400 | [diff] [blame] | 27 | annotations: |
| 28 | cert-manager.io/cluster-issuer: "letsencrypt-prod" |
| 29 | acme.cert-manager.io/http01-edit-in-place: "true" |
| giolekva | a7e37d7 | 2020-04-27 22:16:24 +0400 | [diff] [blame] | 30 | spec: |
| giolekva | d972536 | 2021-07-14 21:03:11 +0400 | [diff] [blame] | 31 | ingressClassName: nginx |
| 32 | tls: |
| 33 | - hosts: |
| 34 | - woof.lekva.me |
| 35 | secretName: cert-woof.lekva.me |
| 36 | rules: |
| 37 | - host: woof.lekva.me |
| 38 | http: |
| 39 | paths: |
| 40 | - path: / |
| 41 | pathType: Prefix |
| 42 | backend: |
| 43 | service: |
| 44 | name: rpuppy |
| 45 | port: |
| 46 | name: http |
| giolekva | a7e37d7 | 2020-04-27 22:16:24 +0400 | [diff] [blame] | 47 | --- |
| giolekva | 01eb879 | 2020-04-27 16:42:38 +0400 | [diff] [blame] | 48 | apiVersion: apps/v1 |
| giolekva | a7e37d7 | 2020-04-27 22:16:24 +0400 | [diff] [blame] | 49 | kind: Deployment |
| giolekva | 01eb879 | 2020-04-27 16:42:38 +0400 | [diff] [blame] | 50 | metadata: |
| 51 | name: rpuppy |
| 52 | namespace: app-rpuppy |
| 53 | spec: |
| 54 | selector: |
| 55 | matchLabels: |
| 56 | app: rpuppy |
| 57 | replicas: 1 |
| 58 | template: |
| 59 | metadata: |
| 60 | labels: |
| 61 | app: rpuppy |
| 62 | spec: |
| 63 | containers: |
| 64 | - name: rpuppy |
| 65 | image: giolekva/rpuppy-arm:latest |
| giolekva | d972536 | 2021-07-14 21:03:11 +0400 | [diff] [blame] | 66 | imagePullPolicy: Always |
| giolekva | 01eb879 | 2020-04-27 16:42:38 +0400 | [diff] [blame] | 67 | ports: |
| giolekva | d972536 | 2021-07-14 21:03:11 +0400 | [diff] [blame] | 68 | - name: http |
| 69 | containerPort: 8080 |
| 70 | protocol: TCP |
| 71 | command: ["rpuppy", "--port=8080"] |
| giolekva | e14c39f | 2021-10-20 11:45:31 +0400 | [diff] [blame^] | 72 | resources: |
| 73 | requests: |
| 74 | memory: "10Mi" |
| 75 | cpu: "10m" |
| 76 | limits: |
| 77 | memory: "20Mi" |
| 78 | cpu: "100m" |
| 79 | tolerations: |
| 80 | - key: "pcloud" |
| 81 | operator: "Equal" |
| 82 | value: "role" |
| 83 | effect: "NoSchedule" |