Openshift Lab
Openshift Lab
Openshift Lab
https://api.cluster-2z44j.2z44j.sandbox2147.opentlc.com:6443
https://console-openshift-console.apps.cluster-2z44j.2z44j.sandbox2147.opentlc.com/
xjN76PAFMfUo
https://api.shared-na46.openshift.opentlc.com:6443
https://console-openshift-console.apps.shared-na46.openshift.opentlc.com/
SQL Build_Config:
------------
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
annotations:
description: Defines how to build the application
template.alpha.openshift.io/wait-for-ready: 'true'
resourceVersion: '497690'
name: cakephp-mysql-persistent
uid: 63512322-7381-4955-80d0-eb3fe4f088c0
creationTimestamp: '2022-10-04T13:45:47Z'
generation: 2
managedFields:
- manager: openshift-apiserver
operation: Update
apiVersion: build.openshift.io/v1
time: '2022-10-04T13:45:47Z'
fieldsType: FieldsV1
fieldsV1:
'f:spec':
'f:triggers': {}
'f:status':
'f:imageChangeTriggers': {}
'f:lastVersion': {}
- manager: openshift-controller-manager
operation: Update
apiVersion: build.openshift.io/v1
time: '2022-10-04T13:45:47Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
.: {}
'f:description': {}
'f:template.alpha.openshift.io/wait-for-ready': {}
'f:labels':
.: {}
'f:app': {}
'f:template': {}
'f:template.openshift.io/template-instance-owner': {}
'f:spec':
'f:output':
'f:to':
.: {}
'f:kind': {}
'f:name': {}
'f:postCommit':
'f:script': {}
'f:runPolicy': {}
'f:source':
'f:git':
.: {}
'f:uri': {}
'f:type': {}
'f:strategy':
'f:sourceStrategy':
.: {}
'f:env': {}
'f:from':
.: {}
'f:kind': {}
'f:name': {}
'f:namespace': {}
'f:type': {}
namespace: kiranproject
labels:
app: cakephp-mysql-persistent
template: cakephp-mysql-persistent
template.openshift.io/template-instance-owner: 783ab03c-9537-49c8-a29c-
036f9e419ab1
spec:
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: 'cakephp-mysql-persistent:latest'
resources: {}
successfulBuildsHistoryLimit: 5
failedBuildsHistoryLimit: 5
strategy:
type: Source
sourceStrategy:
from:
kind: ImageStreamTag
namespace: openshift
name: 'php:7.3-ubi8'
env:
- name: COMPOSER_MIRROR
postCommit:
script: ./vendor/bin/phpunit
source:
type: Git
git:
uri: 'https://github.com/sclorg/cakephp-ex.git'
triggers:
- type: ImageChange
imageChange:
lastTriggeredImageID: >-
image-registry.openshift-image-registry.svc:5000/openshift/php@sha256:b08209b250639
2333b075c03f9be260de7b3ebda8315f44b89218c5ba074562d
- type: ConfigChange
- type: GitHub
github:
secret: crikypUbNTaWvhV2rjr8WLvVyPxRVdqX8tT7usIp
runPolicy: Serial
status:
lastVersion: 1
imageChangeTriggers:
- lastTriggeredImageID: >-
image-registry.openshift-image-registry.svc:5000/openshift/php@sha256:b08209b250639
2333b075c03f9be260de7b3ebda8315f44b89218c5ba074562d
from:
namespace: openshift
name: 'php:7.3-ubi8'
lastTriggerTime: '2022-10-04T13:45:47Z'
=========================
Deployment created but in the bacckend it is creating as below:
kind: ReplicaSet
apiVersion: apps/v1
metadata:
annotations:
deployment.kubernetes.io/revision: '3'
app.openshift.io/vcs-ref: ''
openshift.io/generated-by: OpenShiftWebConsole
alpha.image.policy.openshift.io/resolve-names: '*'
deployment.kubernetes.io/max-replicas: '2'
deployment.kubernetes.io/desired-replicas: '2'
image.openshift.io/triggers: >-
[{"from":{"kind":"ImageStreamTag","name":"devfile-sample-python-basic-
git:latest","namespace":"kiranproject"},"fieldPath":"spec.template.spec.containers[
?(@.name==\"devfile-sample-python-basic-git\")].image","pause":"false"}]
isFromDevfile: 'true'
app.openshift.io/vcs-uri: 'https://github.com/elsony/devfile-sample-python-
basic.git'
resourceVersion: '435133'
name: devfile-sample-python-basic-git-79cb4fdfc
uid: 4ae5367f-4126-494a-8a25-7e977d1f6ad7
creationTimestamp: '2022-10-04T13:00:27Z'
generation: 1
managedFields:
- manager: kube-controller-manager
operation: Update
apiVersion: apps/v1
time: '2022-10-04T13:01:13Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
'f:deployment.kubernetes.io/desired-replicas': {}
'f:image.openshift.io/triggers': {}
'f:isFromDevfile': {}
.: {}
'f:deployment.kubernetes.io/revision': {}
'f:app.openshift.io/vcs-uri': {}
'f:openshift.io/generated-by': {}
'f:alpha.image.policy.openshift.io/resolve-names': {}
'f:deployment.kubernetes.io/max-replicas': {}
'f:app.openshift.io/vcs-ref': {}
'f:labels':
.: {}
'f:app': {}
'f:deploymentconfig': {}
'f:pod-template-hash': {}
'f:ownerReferences':
.: {}
'k:{"uid":"abb40909-0b03-4692-80ac-cfa28d118e3b"}':
.: {}
'f:apiVersion': {}
'f:blockOwnerDeletion': {}
'f:controller': {}
'f:kind': {}
'f:name': {}
'f:uid': {}
'f:spec':
'f:replicas': {}
'f:selector': {}
'f:template':
'f:metadata':
'f:labels':
.: {}
'f:app': {}
'f:deploymentconfig': {}
'f:pod-template-hash': {}
'f:spec':
'f:containers':
'k:{"name":"devfile-sample-python-basic-git"}':
'f:image': {}
'f:terminationMessagePolicy': {}
.: {}
'f:resources':
.: {}
'f:limits':
.: {}
'f:memory': {}
'f:env':
.: {}
'k:{"name":"PROJECTS_ROOT"}':
.: {}
'f:name': {}
'f:value': {}
'k:{"name":"PROJECT_SOURCE"}':
.: {}
'f:name': {}
'f:value': {}
'f:terminationMessagePath': {}
'f:imagePullPolicy': {}
'f:ports':
.: {}
'k:{"containerPort":8081,"protocol":"TCP"}':
.: {}
'f:containerPort': {}
'f:name': {}
'f:protocol': {}
'f:name': {}
'f:dnsPolicy': {}
'f:restartPolicy': {}
'f:schedulerName': {}
'f:securityContext': {}
'f:terminationGracePeriodSeconds': {}
'f:status':
'f:fullyLabeledReplicas': {}
'f:observedGeneration': {}
'f:replicas': {}
namespace: kiranproject
ownerReferences:
- apiVersion: apps/v1
kind: Deployment
name: devfile-sample-python-basic-git
uid: abb40909-0b03-4692-80ac-cfa28d118e3b
controller: true
blockOwnerDeletion: true
labels:
app: devfile-sample-python-basic-git
deploymentconfig: devfile-sample-python-basic-git
pod-template-hash: 79cb4fdfc
spec:
replicas: 2
selector:
matchLabels:
app: devfile-sample-python-basic-git
pod-template-hash: 79cb4fdfc
template:
metadata:
creationTimestamp: null
labels:
app: devfile-sample-python-basic-git
deploymentconfig: devfile-sample-python-basic-git
pod-template-hash: 79cb4fdfc
spec:
containers:
- name: devfile-sample-python-basic-git
image: >-
image-registry.openshift-image-registry.svc:5000/kiranproject/devfile-
sample-python-basic-
git@sha256:ff54a96eecd9c828d2a26c266993c154029de5ab161bc5085007329656339297
ports:
- name: 8081-tcp
containerPort: 8081
protocol: TCP
env:
- name: PROJECTS_ROOT
value: /projects
- name: PROJECT_SOURCE
value: /projects
resources:
limits:
memory: 1Gi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
status:
replicas: 2
fullyLabeledReplicas: 2
observedGeneration: 1
=======================
kind: ReplicationController
apiVersion: v1
metadata:
annotations:
openshift.io/deployment-config.name: mysql
openshift.io/deployer-pod.completed-at: '2022-10-04 13:55:51 +0000 UTC'
openshift.io/deployment.phase: Failed
openshift.io/deployer-pod.created-at: '2022-10-04 13:45:48 +0000 UTC'
openshift.io/deployment-config.latest-version: '1'
openshift.io/deployment.status-reason: config change
kubectl.kubernetes.io/desired-replicas: '1'
openshift.io/deployment.replicas: '0'
openshift.io/encoded-deployment-config: >
{"kind":"DeploymentConfig","apiVersion":"apps.openshift.io/v1","metadata":
{"name":"mysql","namespace":"kiranproject","uid":"d3f55c9f-5eb8-46ce-b51a-
96b78ae868e4","resourceVersion":"497723","generation":2,"creationTimestamp":"2022-
10-04T13:45:47Z","labels":{"app":"cakephp-mysql-persistent","template":"cakephp-
mysql-persistent","template.openshift.io/template-instance-owner":"783ab03c-9537-
49c8-a29c-036f9e419ab1"},"annotations":{"description":"Defines
how to deploy the
database","template.alpha.openshift.io/wait-for-
ready":"true"},"managedFields":[{"manager":"openshift-controller-
manager","operation":"Update","apiVersion":"apps.openshift.io/v1","time":"2022-10-
04T13:45:48Z","fieldsType":"FieldsV1","fieldsV1":{"f:metadata":{"f:annotations":
{".":{},"f:description":{},"f:template.alpha.openshift.io/wait-for-ready":
{}},"f:labels":{".":{},"f:app":{},"f:template":{},"f:template.openshift.io/
template-instance-owner":{}}},"f:spec":{"f:replicas":{},"f:selector":{".":
{},"f:name":{}},"f:strategy":{"f:activeDeadlineSeconds":{},"f:recreateParams":{".":
{},"f:timeoutSeconds":{}},"f:type":{}},"f:template":{".":{},"f:metadata":{".":
{},"f:creationTimestamp":{},"f:labels":{".":{},"f:name":{}},"f:name":{}},"f:spec":
{".":{},"f:containers":{".":{},"k:{\"name\":\"mysql\"}":{".":{},"f:env":{".":{},"k:
{\"name\":\"MYSQL_DATABASE\"}":{".":{},"f:name":{},"f:value":{}},"k:
{\"name\":\"MYSQL_DEFAULT_AUTHENTICATION_PLUGIN\"}":{".":{},"f:name":{},"f:value":
{}},"k:{\"name\":\"MYSQL_PASSWORD\"}":{".":{},"f:name":{},"f:valueFrom":{".":
{},"f:secretKeyRef":{".":{},"f:key":{},"f:name":{}}}},"k:
{\"name\":\"MYSQL_USER\"}":{".":{},"f:name":{},"f:valueFrom":{".":
{},"f:secretKeyRef":{".":{},"f:key":{},"f:name":{}}}}},"f:image":
{},"f:imagePullPolicy":{},"f:livenessProbe":{".":{},"f:failureThreshold":
{},"f:initialDelaySeconds":{},"f:periodSeconds":{},"f:successThreshold":
{},"f:tcpSocket":{".":{},"f:port":{}},"f:timeoutSeconds":{}},"f:name":{},"f:ports":
{".":{},"k:{\"containerPort\":3306,\"protocol\":\"TCP\"}":{".":
{},"f:containerPort":{},"f:protocol":{}}},"f:readinessProbe":{".":{},"f:exec":{".":
{},"f:command":{}},"f:failureThreshold":{},"f:initialDelaySeconds":
{},"f:periodSeconds":{},"f:successThreshold":{},"f:timeoutSeconds":
{}},"f:resources":{".":{},"f:limits":{".":{},"f:memory":
{}}},"f:terminationMessagePath":{},"f:terminationMessagePolicy":
{},"f:volumeMounts":{".":{},"k:{\"mountPath\":\"/var/lib/mysql/data\"}":{".":
{},"f:mountPath":{},"f:name":{}}}}},"f:dnsPolicy":{},"f:restartPolicy":
{},"f:schedulerName":{},"f:securityContext":{},"f:terminationGracePeriodSeconds":
{},"f:volumes":{".":{},"k:{\"name\":\"mysql-data\"}":{".":{},"f:name":
{},"f:persistentVolumeClaim":{".":{},"f:claimName":{}}}}}},"f:triggers":
{}},"f:status":{"f:conditions":{".":{},"k:{\"type\":\"Available\"}":{".":
{},"f:lastTransitionTime":{},"f:lastUpdateTime":{},"f:message":{},"f:status":
{},"f:type":{}}},"f:details":{".":{},"f:causes":{},"f:message":
{}},"f:latestVersion":{},"f:observedGeneration":{}}}}]},"spec":{"strategy":
{"type":"Recreate","recreateParams":{"timeoutSeconds":600},"resources":
{},"activeDeadlineSeconds":21600},"triggers":
[{"type":"ImageChange","imageChangeParams":{"automatic":true,"containerNames":
["mysql"],"from":
{"kind":"ImageStreamTag","namespace":"openshift","name":"mysql:8.0-
el8"},"lastTriggeredImage":"image-registry.openshift-image-registry.svc:5000/
openshift/
mysql@sha256:9430212003d97d3a0e3584c8dec91e09d1edb36cc2cbf857014fa43a9dbd4ec3"}},
{"type":"ConfigChange"}],"replicas":1,"revisionHistoryLimit":10,"test":false,"selec
tor":{"name":"mysql"},"template":{"metadata":
{"name":"mysql","creationTimestamp":null,"labels":{"name":"mysql"}},"spec":
{"volumes":[{"name":"mysql-data","persistentVolumeClaim":
{"claimName":"mysql"}}],"containers":[{"name":"mysql","image":"image-
registry.openshift-image-registry.svc:5000/openshift/
mysql@sha256:9430212003d97d3a0e3584c8dec91e09d1edb36cc2cbf857014fa43a9dbd4ec3","por
ts":[{"containerPort":3306,"protocol":"TCP"}],"env":
[{"name":"MYSQL_USER","valueFrom":{"secretKeyRef":{"name":"cakephp-mysql-
persistent","key":"database-user"}}},{"name":"MYSQL_PASSWORD","valueFrom":
{"secretKeyRef":{"name":"cakephp-mysql-persistent","key":"database-password"}}},
{"name":"MYSQL_DATABASE","value":"default"},
{"name":"MYSQL_DEFAULT_AUTHENTICATION_PLUGIN","value":"mysql_native_password"}],"re
sources":{"limits":{"memory":"512Mi"}},"volumeMounts":[{"name":"mysql-
data","mountPath":"/var/lib/mysql/data"}],"livenessProbe":{"tcpSocket":
{"port":3306},"initialDelaySeconds":30,"timeoutSeconds":1,"periodSeconds":10,"succe
ssThreshold":1,"failureThreshold":3},"readinessProbe":{"exec":{"command":["/bin/
sh","-i","-c","MYSQL_PWD='DLPsveA3mPO0EFmu'
mysql -h 127.0.0.1 -u cakephp -D default -e 'SELECT
1'"]},"initialDelaySeconds":5,"timeoutSeconds":1,"periodSeconds":10,"successThresho
ld":1,"failureThreshold":3},"terminationMessagePath":"/dev/termination-
log","terminationMessagePolicy":"File","imagePullPolicy":"IfNotPresent"}],"restartP
olicy":"Always","terminationGracePeriodSeconds":30,"dnsPolicy":"ClusterFirst","secu
rityContext":{},"schedulerName":"default-scheduler"}}},"status":
{"latestVersion":1,"observedGeneration":1,"replicas":0,"updatedReplicas":0,"availab
leReplicas":0,"unavailableReplicas":0,"details":{"message":"config
change","causes":[{"type":"ConfigChange"}]},"conditions":
[{"type":"Available","status":"False","lastUpdateTime":"2022-10-
04T13:45:47Z","lastTransitionTime":"2022-10-04T13:45:47Z","message":"Deployment
config does not have minimum availability."}]}}
openshift.io/deployer-pod.name: mysql-1-deploy
resourceVersion: '511855'
name: mysql-1
uid: 0078e3fc-7072-486c-9636-65a97356d2ce
creationTimestamp: '2022-10-04T13:45:48Z'
generation: 3
managedFields:
- manager: kube-controller-manager
operation: Update
apiVersion: v1
time: '2022-10-04T13:55:52Z'
fieldsType: FieldsV1
fieldsV1:
'f:status':
'f:observedGeneration': {}
'f:replicas': {}
- manager: openshift-controller-manager
operation: Update
apiVersion: v1
time: '2022-10-04T13:55:52Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
'f:kubectl.kubernetes.io/desired-replicas': {}
'f:openshift.io/deployment.replicas': {}
'f:openshift.io/encoded-deployment-config': {}
.: {}
'f:openshift.io/deployment-config.name': {}
'f:openshift.io/deployer-pod.name': {}
'f:openshift.io/deployment.phase': {}
'f:openshift.io/deployment-config.latest-version': {}
'f:openshift.io/deployment.status-reason': {}
'f:openshift.io/deployer-pod.completed-at': {}
'f:openshift.io/deployer-pod.created-at': {}
'f:labels':
.: {}
'f:app': {}
'f:openshift.io/deployment-config.name': {}
'f:template': {}
'f:template.openshift.io/template-instance-owner': {}
'f:ownerReferences':
.: {}
'k:{"uid":"d3f55c9f-5eb8-46ce-b51a-96b78ae868e4"}':
.: {}
'f:apiVersion': {}
'f:blockOwnerDeletion': {}
'f:controller': {}
'f:kind': {}
'f:name': {}
'f:uid': {}
'f:spec':
'f:replicas': {}
'f:selector':
.: {}
'f:deployment': {}
'f:deploymentconfig': {}
'f:name': {}
'f:template':
.: {}
'f:metadata':
.: {}
'f:annotations':
.: {}
'f:openshift.io/deployment-config.latest-version': {}
'f:openshift.io/deployment-config.name': {}
'f:openshift.io/deployment.name': {}
'f:creationTimestamp': {}
'f:labels':
.: {}
'f:deployment': {}
'f:deploymentconfig': {}
'f:name': {}
'f:spec':
.: {}
'f:containers':
.: {}
'k:{"name":"mysql"}':
'f:image': {}
'f:volumeMounts':
.: {}
'k:{"mountPath":"/var/lib/mysql/data"}':
.: {}
'f:mountPath': {}
'f:name': {}
'f:terminationMessagePolicy': {}
.: {}
'f:resources':
.: {}
'f:limits':
.: {}
'f:memory': {}
'f:livenessProbe':
.: {}
'f:failureThreshold': {}
'f:initialDelaySeconds': {}
'f:periodSeconds': {}
'f:successThreshold': {}
'f:tcpSocket':
.: {}
'f:port': {}
'f:timeoutSeconds': {}
'f:env':
.: {}
'k:{"name":"MYSQL_DATABASE"}':
.: {}
'f:name': {}
'f:value': {}
'k:{"name":"MYSQL_DEFAULT_AUTHENTICATION_PLUGIN"}':
.: {}
'f:name': {}
'f:value': {}
'k:{"name":"MYSQL_PASSWORD"}':
.: {}
'f:name': {}
'f:valueFrom':
.: {}
'f:secretKeyRef':
.: {}
'f:key': {}
'f:name': {}
'k:{"name":"MYSQL_USER"}':
.: {}
'f:name': {}
'f:valueFrom':
.: {}
'f:secretKeyRef':
.: {}
'f:key': {}
'f:name': {}
'f:readinessProbe':
.: {}
'f:exec':
.: {}
'f:command': {}
'f:failureThreshold': {}
'f:initialDelaySeconds': {}
'f:periodSeconds': {}
'f:successThreshold': {}
'f:timeoutSeconds': {}
'f:terminationMessagePath': {}
'f:imagePullPolicy': {}
'f:ports':
.: {}
'k:{"containerPort":3306,"protocol":"TCP"}':
.: {}
'f:containerPort': {}
'f:protocol': {}
'f:name': {}
'f:dnsPolicy': {}
'f:restartPolicy': {}
'f:schedulerName': {}
'f:securityContext': {}
'f:terminationGracePeriodSeconds': {}
'f:volumes':
.: {}
'k:{"name":"mysql-data"}':
.: {}
'f:name': {}
'f:persistentVolumeClaim':
.: {}
'f:claimName': {}
namespace: kiranproject
ownerReferences:
- apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
name: mysql
uid: d3f55c9f-5eb8-46ce-b51a-96b78ae868e4
controller: true
blockOwnerDeletion: true
labels:
app: cakephp-mysql-persistent
openshift.io/deployment-config.name: mysql
template: cakephp-mysql-persistent
template.openshift.io/template-instance-owner: 783ab03c-9537-49c8-a29c-
036f9e419ab1
spec:
replicas: 0
selector:
deployment: mysql-1
deploymentconfig: mysql
name: mysql
template:
metadata:
creationTimestamp: null
labels:
deployment: mysql-1
deploymentconfig: mysql
name: mysql
annotations:
openshift.io/deployment-config.latest-version: '1'
openshift.io/deployment-config.name: mysql
openshift.io/deployment.name: mysql-1
spec:
volumes:
- name: mysql-data
persistentVolumeClaim:
claimName: mysql
containers:
- resources:
limits:
memory: 512Mi
readinessProbe:
exec:
command:
- /bin/sh
- '-i'
- '-c'
- >-
MYSQL_PWD='DLPsveA3mPO0EFmu' mysql -h 127.0.0.1 -u cakephp -D
default -e 'SELECT 1'
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
terminationMessagePath: /dev/termination-log
name: mysql
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 30
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: cakephp-mysql-persistent
key: database-user
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: cakephp-mysql-persistent
key: database-password
- name: MYSQL_DATABASE
value: default
- name: MYSQL_DEFAULT_AUTHENTICATION_PLUGIN
value: mysql_native_password
ports:
- containerPort: 3306
protocol: TCP
imagePullPolicy: IfNotPresent
volumeMounts:
- name: mysql-data
mountPath: /var/lib/mysql/data
terminationMessagePolicy: File
image: >-
image-registry.openshift-image-registry.svc:5000/openshift/mysql@sha256:9430212003d
97d3a0e3584c8dec91e09d1edb36cc2cbf857014fa43a9dbd4ec3
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
status:
replicas: 0
observedGeneration: 3
===========
kind: Pod
apiVersion: v1
metadata:
generateName: mysql-2-
annotations:
k8s.v1.cni.cncf.io/network-status: |-
[{
"name": "openshift-sdn",
"interface": "eth0",
"ips": [
"10.128.1.12"
],
"default": true,
"dns": {}
}]
k8s.v1.cni.cncf.io/networks-status: |-
[{
"name": "openshift-sdn",
"interface": "eth0",
"ips": [
"10.128.1.12"
],
"default": true,
"dns": {}
}]
openshift.io/deployment-config.latest-version: '2'
openshift.io/deployment-config.name: mysql
openshift.io/deployment.name: mysql-2
openshift.io/scc: restricted
resourceVersion: '558348'
name: mysql-2-2vt4w
uid: 940d1375-8026-4dc9-a087-477db68c8dcd
creationTimestamp: '2022-10-04T14:28:47Z'
managedFields:
- manager: kube-controller-manager
operation: Update
apiVersion: v1
time: '2022-10-04T14:28:47Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
.: {}
'f:openshift.io/deployment-config.latest-version': {}
'f:openshift.io/deployment-config.name': {}
'f:openshift.io/deployment.name': {}
'f:generateName': {}
'f:labels':
.: {}
'f:deployment': {}
'f:deploymentconfig': {}
'f:name': {}
'f:ownerReferences':
.: {}
'k:{"uid":"fa7174f3-1721-4672-80f1-01052a99d560"}':
.: {}
'f:apiVersion': {}
'f:blockOwnerDeletion': {}
'f:controller': {}
'f:kind': {}
'f:name': {}
'f:uid': {}
'f:spec':
'f:containers':
'k:{"name":"mysql"}':
'f:image': {}
'f:volumeMounts':
.: {}
'k:{"mountPath":"/var/lib/mysql/data"}':
.: {}
'f:mountPath': {}
'f:name': {}
'f:terminationMessagePolicy': {}
.: {}
'f:resources':
.: {}
'f:limits':
.: {}
'f:memory': {}
'f:requests':
.: {}
'f:memory': {}
'f:livenessProbe':
.: {}
'f:failureThreshold': {}
'f:initialDelaySeconds': {}
'f:periodSeconds': {}
'f:successThreshold': {}
'f:tcpSocket':
.: {}
'f:port': {}
'f:timeoutSeconds': {}
'f:env':
.: {}
'k:{"name":"MYSQL_DATABASE"}':
.: {}
'f:name': {}
'f:value': {}
'k:{"name":"MYSQL_DEFAULT_AUTHENTICATION_PLUGIN"}':
.: {}
'f:name': {}
'f:value': {}
'k:{"name":"MYSQL_PASSWORD"}':
.: {}
'f:name': {}
'f:valueFrom':
.: {}
'f:secretKeyRef':
.: {}
'f:key': {}
'f:name': {}
'k:{"name":"MYSQL_USER"}':
.: {}
'f:name': {}
'f:valueFrom':
.: {}
'f:secretKeyRef':
.: {}
'f:key': {}
'f:name': {}
'f:readinessProbe':
.: {}
'f:exec':
.: {}
'f:command': {}
'f:failureThreshold': {}
'f:initialDelaySeconds': {}
'f:periodSeconds': {}
'f:successThreshold': {}
'f:timeoutSeconds': {}
'f:terminationMessagePath': {}
'f:imagePullPolicy': {}
'f:ports':
.: {}
'k:{"containerPort":3306,"protocol":"TCP"}':
.: {}
'f:containerPort': {}
'f:protocol': {}
'f:name': {}
'f:dnsPolicy': {}
'f:enableServiceLinks': {}
'f:restartPolicy': {}
'f:schedulerName': {}
'f:securityContext':
.: {}
'f:fsGroup': {}
'f:seLinuxOptions':
'f:level': {}
'f:terminationGracePeriodSeconds': {}
'f:volumes':
.: {}
'k:{"name":"mysql-data"}':
.: {}
'f:name': {}
'f:persistentVolumeClaim':
.: {}
'f:claimName': {}
- manager: multus
operation: Update
apiVersion: v1
time: '2022-10-04T14:28:58Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
'f:k8s.v1.cni.cncf.io/network-status': {}
'f:k8s.v1.cni.cncf.io/networks-status': {}
- manager: kubelet
operation: Update
apiVersion: v1
time: '2022-10-04T14:29:07Z'
fieldsType: FieldsV1
fieldsV1:
'f:status':
'f:conditions':
'k:{"type":"ContainersReady"}':
.: {}
'f:lastProbeTime': {}
'f:lastTransitionTime': {}
'f:status': {}
'f:type': {}
'k:{"type":"Initialized"}':
.: {}
'f:lastProbeTime': {}
'f:lastTransitionTime': {}
'f:status': {}
'f:type': {}
'k:{"type":"Ready"}':
.: {}
'f:lastProbeTime': {}
'f:lastTransitionTime': {}
'f:status': {}
'f:type': {}
'f:containerStatuses': {}
'f:hostIP': {}
'f:phase': {}
'f:podIP': {}
'f:podIPs':
.: {}
'k:{"ip":"10.128.1.12"}':
.: {}
'f:ip': {}
'f:startTime': {}
namespace: kiranproject
ownerReferences:
- apiVersion: v1
kind: ReplicationController
name: mysql-2
uid: fa7174f3-1721-4672-80f1-01052a99d560
controller: true
blockOwnerDeletion: true
labels:
deployment: mysql-2
deploymentconfig: mysql
name: mysql
spec:
restartPolicy: Always
serviceAccountName: default
imagePullSecrets:
- name: default-dockercfg-9r8ln
priority: 0
schedulerName: default-scheduler
enableServiceLinks: true
terminationGracePeriodSeconds: 30
preemptionPolicy: PreemptLowerPriority
nodeName: ip-10-0-214-107.us-east-2.compute.internal
securityContext:
seLinuxOptions:
level: 's0:c26,c15'
fsGroup: 1000680000
containers:
- resources:
limits:
memory: 512Mi
requests:
memory: 512Mi
readinessProbe:
exec:
command:
- /bin/sh
- '-i'
- '-c'
- >-
MYSQL_PWD='DLPsveA3mPO0EFmu' mysql -h 127.0.0.1 -u cakephp -D
default -e 'SELECT 1'
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
terminationMessagePath: /dev/termination-log
name: mysql
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 30
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: cakephp-mysql-persistent
key: database-user
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: cakephp-mysql-persistent
key: database-password
- name: MYSQL_DATABASE
value: default
- name: MYSQL_DEFAULT_AUTHENTICATION_PLUGIN
value: mysql_native_password
securityContext:
capabilities:
drop:
- KILL
- MKNOD
- SETGID
- SETUID
runAsUser: 1000680000
ports:
- containerPort: 3306
protocol: TCP
imagePullPolicy: IfNotPresent
volumeMounts:
- name: mysql-data
mountPath: /var/lib/mysql/data
- name: kube-api-access-7c55b
readOnly: true
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
terminationMessagePolicy: File
image: >-
image-registry.openshift-image-registry.svc:5000/openshift/mysql@sha256:9430212003d
97d3a0e3584c8dec91e09d1edb36cc2cbf857014fa43a9dbd4ec3
serviceAccount: default
volumes:
- name: mysql-data
persistentVolumeClaim:
claimName: mysql
- name: kube-api-access-7c55b
projected:
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
- configMap:
name: kube-root-ca.crt
items:
- key: ca.crt
path: ca.crt
- downwardAPI:
items:
- path: namespace
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- configMap:
name: openshift-service-ca.crt
items:
- key: service-ca.crt
path: service-ca.crt
defaultMode: 420
dnsPolicy: ClusterFirst
tolerations:
- key: node.kubernetes.io/not-ready
operator: Exists
effect: NoExecute
tolerationSeconds: 300
- key: node.kubernetes.io/unreachable
operator: Exists
effect: NoExecute
tolerationSeconds: 300
- key: node.kubernetes.io/memory-pressure
operator: Exists
effect: NoSchedule
status:
phase: Running
conditions:
- type: Initialized
status: 'True'
lastProbeTime: null
lastTransitionTime: '2022-10-04T14:28:47Z'
- type: Ready
status: 'True'
lastProbeTime: null
lastTransitionTime: '2022-10-04T14:29:07Z'
- type: ContainersReady
status: 'True'
lastProbeTime: null
lastTransitionTime: '2022-10-04T14:29:07Z'
- type: PodScheduled
status: 'True'
lastProbeTime: null
lastTransitionTime: '2022-10-04T14:28:47Z'
hostIP: 10.0.214.107
podIP: 10.128.1.12
podIPs:
- ip: 10.128.1.12
startTime: '2022-10-04T14:28:47Z'
containerStatuses:
- restartCount: 0
started: true
ready: true
name: mysql
state:
running:
startedAt: '2022-10-04T14:28:58Z'
imageID: >-
image-registry.openshift-image-registry.svc:5000/openshift/mysql@sha256:9430212003d
97d3a0e3584c8dec91e09d1edb36cc2cbf857014fa43a9dbd4ec3
image: >-
image-registry.openshift-image-registry.svc:5000/openshift/mysql@sha256:9430212003d
97d3a0e3584c8dec91e09d1edb36cc2cbf857014fa43a9dbd4ec3
lastState: {}
containerID:
'cri-o://a3428b12e9addd57c1ddc50c8f09dbc6b78d367dab6d87a3ffd250b8f555172f'
qosClass: Burstable
=======================
kind: DeploymentConfig
apiVersion: apps.openshift.io/v1
metadata:
annotations:
description: Defines how to deploy the database
template.alpha.openshift.io/wait-for-ready: 'true'
resourceVersion: '558355'
name: mysql
uid: d3f55c9f-5eb8-46ce-b51a-96b78ae868e4
creationTimestamp: '2022-10-04T13:45:47Z'
generation: 3
managedFields:
- manager: openshift-controller-manager
operation: Update
apiVersion: apps.openshift.io/v1
time: '2022-10-04T14:29:07Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
.: {}
'f:description': {}
'f:template.alpha.openshift.io/wait-for-ready': {}
'f:labels':
.: {}
'f:app': {}
'f:template': {}
'f:template.openshift.io/template-instance-owner': {}
'f:spec':
'f:replicas': {}
'f:selector':
.: {}
'f:name': {}
'f:strategy':
'f:activeDeadlineSeconds': {}
'f:recreateParams':
.: {}
'f:timeoutSeconds': {}
'f:type': {}
'f:template':
.: {}
'f:metadata':
.: {}
'f:creationTimestamp': {}
'f:labels':
.: {}
'f:name': {}
'f:name': {}
'f:spec':
.: {}
'f:containers':
.: {}
'k:{"name":"mysql"}':
'f:image': {}
'f:volumeMounts':
.: {}
'k:{"mountPath":"/var/lib/mysql/data"}':
.: {}
'f:mountPath': {}
'f:name': {}
'f:terminationMessagePolicy': {}
.: {}
'f:resources':
.: {}
'f:limits':
.: {}
'f:memory': {}
'f:livenessProbe':
.: {}
'f:failureThreshold': {}
'f:initialDelaySeconds': {}
'f:periodSeconds': {}
'f:successThreshold': {}
'f:tcpSocket':
.: {}
'f:port': {}
'f:timeoutSeconds': {}
'f:env':
.: {}
'k:{"name":"MYSQL_DATABASE"}':
.: {}
'f:name': {}
'f:value': {}
'k:{"name":"MYSQL_DEFAULT_AUTHENTICATION_PLUGIN"}':
.: {}
'f:name': {}
'f:value': {}
'k:{"name":"MYSQL_PASSWORD"}':
.: {}
'f:name': {}
'f:valueFrom':
.: {}
'f:secretKeyRef':
.: {}
'f:key': {}
'f:name': {}
'k:{"name":"MYSQL_USER"}':
.: {}
'f:name': {}
'f:valueFrom':
.: {}
'f:secretKeyRef':
.: {}
'f:key': {}
'f:name': {}
'f:readinessProbe':
.: {}
'f:exec':
.: {}
'f:command': {}
'f:failureThreshold': {}
'f:initialDelaySeconds': {}
'f:periodSeconds': {}
'f:successThreshold': {}
'f:timeoutSeconds': {}
'f:terminationMessagePath': {}
'f:imagePullPolicy': {}
'f:ports':
.: {}
'k:{"containerPort":3306,"protocol":"TCP"}':
.: {}
'f:containerPort': {}
'f:protocol': {}
'f:name': {}
'f:dnsPolicy': {}
'f:restartPolicy': {}
'f:schedulerName': {}
'f:securityContext': {}
'f:terminationGracePeriodSeconds': {}
'f:volumes':
.: {}
'k:{"name":"mysql-data"}':
.: {}
'f:name': {}
'f:persistentVolumeClaim':
.: {}
'f:claimName': {}
'f:triggers': {}
'f:status':
'f:updatedReplicas': {}
'f:readyReplicas': {}
'f:conditions':
.: {}
'k:{"type":"Available"}':
.: {}
'f:lastTransitionTime': {}
'f:lastUpdateTime': {}
'f:message': {}
'f:status': {}
'f:type': {}
'k:{"type":"Progressing"}':
.: {}
'f:lastTransitionTime': {}
'f:lastUpdateTime': {}
'f:message': {}
'f:reason': {}
'f:status': {}
'f:type': {}
'f:details':
.: {}
'f:causes': {}
'f:message': {}
'f:replicas': {}
'f:availableReplicas': {}
'f:observedGeneration': {}
'f:unavailableReplicas': {}
'f:latestVersion': {}
namespace: kiranproject
labels:
app: cakephp-mysql-persistent
template: cakephp-mysql-persistent
template.openshift.io/template-instance-owner: 783ab03c-9537-49c8-a29c-
036f9e419ab1
spec:
strategy:
type: Recreate
resources: {}
activeDeadlineSeconds: 21600
recreateParams:
timeoutSeconds: 600
triggers:
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- mysql
from:
kind: ImageStreamTag
name: 'mysql:8.0-el8'
namespace: openshift
- type: ConfigChange
replicas: 1
revisionHistoryLimit: 10
test: false
selector:
name: mysql
template:
metadata:
name: mysql
creationTimestamp: null
labels:
name: mysql
spec:
volumes:
- name: mysql-data
persistentVolumeClaim:
claimName: mysql
containers:
- resources:
limits:
memory: 512Mi
readinessProbe:
exec:
command:
- /bin/sh
- '-i'
- '-c'
- >-
MYSQL_PWD='DLPsveA3mPO0EFmu' mysql -h 127.0.0.1 -u cakephp -D
default -e 'SELECT 1'
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
terminationMessagePath: /dev/termination-log
name: mysql
livenessProbe:
tcpSocket:
port: 3306
initialDelaySeconds: 30
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: cakephp-mysql-persistent
key: database-user
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: cakephp-mysql-persistent
key: database-password
- name: MYSQL_DATABASE
value: default
- name: MYSQL_DEFAULT_AUTHENTICATION_PLUGIN
value: mysql_native_password
ports:
- containerPort: 3306
protocol: TCP
imagePullPolicy: IfNotPresent
volumeMounts:
- name: mysql-data
mountPath: /var/lib/mysql/data
terminationMessagePolicy: File
image: >-
image-registry.openshift-image-registry.svc:5000/openshift/mysql@sha256:9430212003d
97d3a0e3584c8dec91e09d1edb36cc2cbf857014fa43a9dbd4ec3
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
imagePullSecrets: []
paused: false
status:
observedGeneration: 3
details:
message: manual change
causes:
- type: Manual
availableReplicas: 1
unavailableReplicas: 0
latestVersion: 2
updatedReplicas: 1
conditions:
- type: Available
status: 'True'
lastUpdateTime: '2022-10-04T14:29:07Z'
lastTransitionTime: '2022-10-04T14:29:07Z'
message: Deployment config has minimum availability.
- type: Progressing
status: 'True'
lastUpdateTime: '2022-10-04T14:29:07Z'
lastTransitionTime: '2022-10-04T14:29:07Z'
reason: NewReplicationControllerAvailable
message: replication controller "mysql-2" successfully rolled out
replicas: 1
readyReplicas: 1