blob: 2e69ed25b89038d0b05872e64a12a0912f3d7665 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: rpuppy
namespace: {{ .Release.Namespace }}
spec:
type: LoadBalancer
selector:
app: rpuppy
ports:
- name: http
port: 80
targetPort: http
protocol: TCP
# ---
# apiVersion: networking.k8s.io/v1
# kind: Ingress
# metadata:
# name: ingress
# namespace: {{ .Release.Namespace }}
# annotations:
# cert-manager.io/cluster-issuer: "letsencrypt-prod"
# acme.cert-manager.io/http01-edit-in-place: "true"
# spec:
# ingressClassName: nginx
# tls:
# - hosts:
# - woof.lekva.me
# secretName: cert-woof.lekva.me
# rules:
# - host: woof.lekva.me
# http:
# paths:
# - path: /
# pathType: Prefix
# backend:
# service:
# name: rpuppy
# port:
# name: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rpuppy
namespace: {{ .Release.Namespace }}
spec:
selector:
matchLabels:
app: rpuppy
replicas: 1
template:
metadata:
labels:
app: rpuppy
spec:
containers:
- name: rpuppy
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 8080
protocol: TCP
command: ["rpuppy", "--port=8080"]
resources:
requests:
memory: "10Mi"
cpu: "10m"
limits:
memory: "20Mi"
cpu: "100m"
tolerations:
- key: "pcloud"
operator: "Equal"
value: "role"
effect: "NoSchedule"