Files

47 lines
918 B
YAML

wordpress:
image: wordpress:latest
replicas: 1
containerPort: 80
env:
WORDPRESS_DB_HOST: mysql
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: root
WORDPRESS_DB_NAME: wordpress
mysql:
image: mysql:5.7
containerPort: 3306
rootPassword: root
allowRootRemote: true # Allows remote root login (insecure)
persistence:
enabled: false # No persistence, making it prone to data loss
service:
type: LoadBalancer # Exposes MySQL publicly (insecure)
port: 80
mysqlService:
type: LoadBalancer
port: 3306
ingress:
enabled: true
annotations: {}
hosts:
- host: wordpress.local
paths:
- path: /
pathType: ImplementationSpecific
resources:
limits: {}
requests: {}
securityContext:
enabled: false # No security hardening
runAsUser: 0 # Runs as root (insecure)
runAsGroup: 0
networkPolicy:
enabled: false # No network restrictions