Browse Source

added textservice

feat/add-rm-stuff
Domagoj Zecevic 4 years ago
parent
commit
6ae3a71d4f
  1. 75
      02_hetzner/00_infra/texservice/deployment.yaml

75
02_hetzner/00_infra/texservice/deployment.yaml

@ -0,0 +1,75 @@
# Deployment description
apiVersion: apps/v1
kind: Deployment
metadata:
name: texservice
namespace: infra-environment
labels:
app: texservice
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app: texservice
template:
metadata:
labels:
app: texservice
spec:
containers:
- name: texservice
image: packages.semapp.lan:5000/texservice:alpine-3.9
resources:
requests:
memory: "512Mi"
cpu: "100m"
limits:
memory: "1Gi"
cpu: "4"
ports:
- containerPort: 5010
name: texservice-http
protocol: TCP
---
# Service Description
apiVersion: v1
kind: Service
metadata:
name: texservice
namespace: infra-environment
spec:
selector:
app: texservice
ports:
- name: texservice-http
port: 5010
targetPort: texservice-http
type: NodePort
---
# Ingress description
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: texservice-ingress
namespace: infra-environment
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
rules:
- host: texservice.k8s.semprod.local
http:
paths:
- path: /
backend:
serviceName: texservice
servicePort: 5010
- host: texservice.semprod.local
http:
paths:
- path: /
backend:
serviceName: texservice
servicePort: 5010
Loading…
Cancel
Save