first commit
This commit is contained in:
84
db-deployment.yaml
Normal file
84
db-deployment.yaml
Normal file
@@ -0,0 +1,84 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
deployment.kubernetes.io/revision: "8"
|
||||
creationTimestamp: "2026-04-17T04:01:45Z"
|
||||
generation: 12
|
||||
name: phpipam-db
|
||||
namespace: phpipam
|
||||
resourceVersion: "13922393"
|
||||
uid: ec94fe25-2662-43eb-8278-a4179aed3f62
|
||||
spec:
|
||||
progressDeadlineSeconds: 600
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 10
|
||||
selector:
|
||||
matchLabels:
|
||||
app: phpipam-db
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: phpipam-db
|
||||
spec:
|
||||
containers:
|
||||
- env:
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
value: phpipampassword
|
||||
- name: MYSQL_DATABASE
|
||||
value: phpipam
|
||||
- name: MYSQL_USER
|
||||
value: phpipam
|
||||
- name: MYSQL_PASSWORD
|
||||
value: phpipampassword
|
||||
- name: MYSQL_ALLOW_EMPTY_PASSWORD
|
||||
value: "yes"
|
||||
- name: MYSQL_INITDB_SKIP_GRANT_TABLES
|
||||
value: "1"
|
||||
- name: MARIADB_INITDB_SKIP_GRANT_TABLES
|
||||
value: "1"
|
||||
image: registry.redhat.io/rhel9/mariadb-1011:latest
|
||||
imagePullPolicy: Always
|
||||
name: mariadb
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql/data
|
||||
name: db-storage
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
securityContext: {}
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: db-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: mysql-data-pvc
|
||||
status:
|
||||
availableReplicas: 1
|
||||
conditions:
|
||||
- lastTransitionTime: "2026-04-17T16:35:20Z"
|
||||
lastUpdateTime: "2026-04-17T16:35:20Z"
|
||||
message: Deployment has minimum availability.
|
||||
reason: MinimumReplicasAvailable
|
||||
status: "True"
|
||||
type: Available
|
||||
- lastTransitionTime: "2026-04-17T04:01:45Z"
|
||||
lastUpdateTime: "2026-04-17T16:37:13Z"
|
||||
message: ReplicaSet "phpipam-db-867888dc85" has successfully progressed.
|
||||
reason: NewReplicaSetAvailable
|
||||
status: "True"
|
||||
type: Progressing
|
||||
observedGeneration: 12
|
||||
readyReplicas: 1
|
||||
replicas: 1
|
||||
updatedReplicas: 1
|
||||
Reference in New Issue
Block a user