| 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: |
| 7 | type: LoadBalancer |
| 8 | selector: |
| 9 | app: rpuppy |
| 10 | ports: |
| 11 | - name: http |
| 12 | port: 80 |
| 13 | targetPort: http |
| 14 | protocol: TCP |
| 15 | # --- |
| 16 | # apiVersion: networking.k8s.io/v1 |
| 17 | # kind: Ingress |
| 18 | # metadata: |
| 19 | # name: ingress |
| 20 | # namespace: {{ .Release.Namespace }} |
| 21 | # annotations: |
| 22 | # cert-manager.io/cluster-issuer: "letsencrypt-prod" |
| 23 | # acme.cert-manager.io/http01-edit-in-place: "true" |
| 24 | # spec: |
| 25 | # ingressClassName: nginx |
| 26 | # tls: |
| 27 | # - hosts: |
| 28 | # - woof.lekva.me |
| 29 | # secretName: cert-woof.lekva.me |
| 30 | # rules: |
| 31 | # - host: woof.lekva.me |
| 32 | # http: |
| 33 | # paths: |
| 34 | # - path: / |
| 35 | # pathType: Prefix |
| 36 | # backend: |
| 37 | # service: |
| 38 | # name: rpuppy |
| 39 | # port: |
| 40 | # name: http |
| 41 | --- |
| 42 | apiVersion: apps/v1 |
| 43 | kind: Deployment |
| 44 | metadata: |
| 45 | name: rpuppy |
| 46 | namespace: {{ .Release.Namespace }} |
| 47 | spec: |
| 48 | selector: |
| 49 | matchLabels: |
| 50 | app: rpuppy |
| 51 | replicas: 1 |
| 52 | template: |
| 53 | metadata: |
| 54 | labels: |
| 55 | app: rpuppy |
| 56 | spec: |
| 57 | containers: |
| 58 | - name: rpuppy |
| 59 | image: {{ .Values.image.repository }}:{{ .Values.image.tag }} |
| 60 | imagePullPolicy: {{ .Values.image.pullPolicy }} |
| 61 | ports: |
| 62 | - name: http |
| 63 | containerPort: 8080 |
| 64 | protocol: TCP |
| 65 | command: ["rpuppy", "--port=8080"] |
| 66 | resources: |
| 67 | requests: |
| 68 | memory: "10Mi" |
| 69 | cpu: "10m" |
| 70 | limits: |
| 71 | memory: "20Mi" |
| 72 | cpu: "100m" |
| 73 | tolerations: |
| 74 | - key: "pcloud" |
| 75 | operator: "Equal" |
| 76 | value: "role" |
| 77 | effect: "NoSchedule" |