Files
marktaguiad.dev/kube/dev/web-deployment.yaml
mcbtaguiad ec77f4121f
Some checks failed
Build and Push Docker Image / build (push) Failing after 31s
test
2026-01-19 21:31:03 +08:00

81 lines
2.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: marktaguiad-dev-dev
name: marktaguiad-dev-dev
spec:
replicas: 1
selector:
matchLabels:
app: marktaguiad-dev-dev
strategy:
type: Recreate
template:
metadata:
labels:
app: marktaguiad-dev-dev
spec:
# affinity:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: kubernetes.io/arch
# operator: In
# values:
# - "amd64"
# preferredDuringSchedulingIgnoredDuringExecution:
# - weight: 10
# preference:
# matchExpressions:
# - key: kubernetes.io/role
# operator: In
# values:
# - 'worker'
# - weight: 10
# preference:
# matchExpressions:
# - key: node-role.kubernetes.io/master
# operator: In
# values:
# - 'true'
# - weight: 10
# preference:
# matchExpressions:
# - key: core
# operator: In
# values:
# - "4"
# - weight: 5
# preference:
# matchExpressions:
# - key: core
# operator: In
# values:
# - "3"
# - weight: 5
# preference:
# matchExpressions:
# - key: disk
# operator: In
# values:
# - "ssd"
imagePullSecrets:
- name: ghcr.io
containers:
- image: ghcr.io/mcbtaguiad/marktaguiad.dev:dev
name: marktaguiad-dev-dev
imagePullPolicy: Always
ports:
- containerPort: 80
# volumeMounts:
# - name: static
# subPath: static
# mountPath: /usr/local/apache2/htdocs/static
# volumes:
# - name: static
# persistentVolumeClaim:
# claimName: ``eb-tagsdev-pvc
restartPolicy: Always