62 lines
1.4 KiB
YAML
62 lines
1.4 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:
|
|
nodeSelector:
|
|
kubernetes.io/arch: amd64
|
|
imagePullSecrets:
|
|
- name: reg-nyan404
|
|
containers:
|
|
- name: cwshed
|
|
image: reg.nyan404.ru/cwshed:6656484
|
|
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
|
|
# gateway.yaml defines the gateway production resource; keep namespace and secret references aligned with belki.
|