Files
cwshed-clone/deploy/k8s/gateway.yaml
T

59 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: cwshed
namespace: belki
labels:
app.kubernetes.io/name: cwshed
app.kubernetes.io/part-of: belki-calculator
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: cwshed
template:
metadata:
labels:
app.kubernetes.io/name: cwshed
app.kubernetes.io/part-of: belki-calculator
spec:
imagePullSecrets:
- name: reg-nyan404
containers:
- name: cwshed
image: reg.nyan404.ru/cwshed:6b74dfa
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 80
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 3
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 10
periodSeconds: 20
---
apiVersion: v1
kind: Service
metadata:
name: cwshed
namespace: belki
labels:
app.kubernetes.io/part-of: belki-calculator
spec:
type: LoadBalancer
loadBalancerIP: 10.12.0.204
selector:
app.kubernetes.io/name: cwshed
ports:
- name: http
port: 8998
protocol: TCP
targetPort: http