Skip to content

Commit

Permalink
Create deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 29, 2024
1 parent b90d981 commit ee06568
Showing 1 changed file with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: pi-network
spec:
replicas: 3
selector:
matchLabels:
app: pi-network
template:
metadata:
labels:
app: pi-network
spec:
containers:
- name: pi-network
image: pi-network:latest
ports:
- containerPort: 8080
env:
- name: PI_NETWORK_PORT
value: "8080"
- name: PI_NETWORK_DB_HOST
value: "db"
- name: PI_NETWORK_DB_PORT
value: "5432"
- name: PI_NETWORK_DB_USER
value: "pi_network"
- name: PI_NETWORK_DB_PASSWORD
value: "pi_network_password"
- name: db
image: postgres:12
ports:
- containerPort: 5432
env:
- name: POSTGRES_USER
value: "pi_network"
- name: POSTGRES_PASSWORD
value: "pi_network_password"
- name: POSTGRES_DB
value: "pi_network"
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0

0 comments on commit ee06568

Please sign in to comment.