imfreedom/k8s-cluster
Clone
Summary
Browse
Changes
Graph
Bump the teamcity volume to 2gb
19 months ago, Gary Kramlich
6558dfc3d02b
Bump the teamcity volume to 2gb
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
ci-postgres
spec
:
ports
:
-
port
:
5432
protocol
:
TCP
selector
:
app
:
ci
role
:
db
---
apiVersion
:
networking.k8s.io/v1
kind
:
NetworkPolicy
metadata
:
name
:
ci-postgres
spec
:
podSelector
:
matchLabels
:
app
:
ci
role
:
db
ingress
:
-
from
:
-
podSelector
:
matchExpressions
:
-
key
:
app
operator
:
In
values
:
-
ci
-
key
:
role
operator
:
In
values
:
-
app
ports
:
-
port
:
5432
protocol
:
TCP
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
ci-postgres
spec
:
replicas
:
1
revisionHistoryLimit
:
0
selector
:
matchLabels
:
app
:
ci
role
:
db
strategy
:
type
:
Recreate
template
:
spec
:
containers
:
-
name
:
postgres
image
:
postgres:11
imagePullPolicy
:
Always
env
:
-
name
:
POSTGRES_USER
valueFrom
:
secretKeyRef
:
name
:
ci-postgres
key
:
username
-
name
:
POSTGRES_PASSWORD
valueFrom
:
secretKeyRef
:
name
:
ci-postgres
key
:
password
-
name
:
POSTGRES_DB
valueFrom
:
secretKeyRef
:
name
:
ci-postgres
key
:
db
resources
:
limits
:
cpu
:
200m
memory
:
256Mi
requests
:
cpu
:
100m
memory
:
128Mi
ports
:
-
containerPort
:
5432
volumeMounts
:
-
mountPath
:
/var/lib/postgresql/data
name
:
ci-postgres
readOnly
:
false
subPath
:
postgresql
volumes
:
-
name
:
ci-postgres
persistentVolumeClaim
:
claimName
:
ci-db
---
apiVersion
:
v1
kind
:
PersistentVolumeClaim
metadata
:
name
:
ci-db
spec
:
accessModes
:
-
ReadWriteOnce
resources
:
requests
:
storage
:
2Gi
---
apiVersion
:
gemini.fairwinds.com/v1beta1
kind
:
SnapshotGroup
metadata
:
name
:
ci-db
spec
:
persistentVolumeClaim
:
claimName
:
ci-db
schedule
:
-
every
:
12 hours
keep
:
2
---