You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.3 KiB

# 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.k3s.semapp.lan
http:
paths:
- path: /
backend:
serviceName: texservice
servicePort: 5010