mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
32 lines
543 B
YAML
32 lines
543 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: hit-counter-lb
|
|
spec:
|
|
type: LoadBalancer
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 5000
|
|
selector:
|
|
app: myapp
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: hit-counter-app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: myapp
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: myapp
|
|
spec:
|
|
containers:
|
|
- name: myapp
|
|
image: calinrus/api-redis-ha:1.0
|
|
ports:
|
|
- containerPort: 5000 |