165 lines
4.1 KiB
JSON
165 lines
4.1 KiB
JSON
{
|
|
"kind": "AdmissionReview",
|
|
"apiVersion": "admission.k8s.io/v1beta1",
|
|
"request": {
|
|
"uid": "d6a539c0-8605-4923-8b57-ed54313e359a",
|
|
"kind": {
|
|
"group": "apps",
|
|
"version": "v1",
|
|
"kind": "Deployment"
|
|
},
|
|
"resource": {
|
|
"group": "apps",
|
|
"version": "v1",
|
|
"resource": "deployments"
|
|
},
|
|
"requestKind": {
|
|
"group": "apps",
|
|
"version": "v1",
|
|
"kind": "Deployment"
|
|
},
|
|
"requestResource": {
|
|
"group": "apps",
|
|
"version": "v1",
|
|
"resource": "deployments"
|
|
},
|
|
"name": "test-deploy01",
|
|
"namespace": "test1",
|
|
"operation": "CREATE",
|
|
"userInfo": {
|
|
"username": "kubernetes-admin",
|
|
"groups": ["system:masters", "system:authenticated"]
|
|
},
|
|
"object": {
|
|
"kind": "Deployment",
|
|
"apiVersion": "apps/v1",
|
|
"metadata": {
|
|
"name": "test-deploy01",
|
|
"namespace": "test1",
|
|
"creationTimestamp": null,
|
|
"annotations": {
|
|
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"name\":\"test-deploy01\",\"namespace\":\"test1\"},\"spec\":{\"replicas\":3,\"selector\":{\"matchLabels\":{\"app\":\"hello-kubernetes\"}},\"template\":{\"metadata\":{\"labels\":{\"app\":\"hello-kubernetes\"}},\"spec\":{\"containers\":[{\"image\":\"jmsearcy/hello-kubernetes:1.5\",\"name\":\"hello-kubernetes\",\"ports\":[{\"containerPort\":8080}]}]}}}}\n"
|
|
},
|
|
"managedFields": [{
|
|
"manager": "kubectl",
|
|
"operation": "Update",
|
|
"apiVersion": "apps/v1",
|
|
"time": "2020-10-11T07:23:53Z",
|
|
"fieldsType": "FieldsV1",
|
|
"fieldsV1": {
|
|
"f:metadata": {
|
|
"f:annotations": {
|
|
".": {},
|
|
"f:kubectl.kubernetes.io/last-applied-configuration": {}
|
|
}
|
|
},
|
|
"f:spec": {
|
|
"f:progressDeadlineSeconds": {},
|
|
"f:replicas": {},
|
|
"f:revisionHistoryLimit": {},
|
|
"f:selector": {
|
|
"f:matchLabels": {
|
|
".": {},
|
|
"f:app": {}
|
|
}
|
|
},
|
|
"f:strategy": {
|
|
"f:rollingUpdate": {
|
|
".": {},
|
|
"f:maxSurge": {},
|
|
"f:maxUnavailable": {}
|
|
},
|
|
"f:type": {}
|
|
},
|
|
"f:template": {
|
|
"f:metadata": {
|
|
"f:labels": {
|
|
".": {},
|
|
"f:app": {}
|
|
}
|
|
},
|
|
"f:spec": {
|
|
"f:containers": {
|
|
"k:{\"name\":\"hello-kubernetes\"}": {
|
|
".": {},
|
|
"f:image": {},
|
|
"f:imagePullPolicy": {},
|
|
"f:name": {},
|
|
"f:ports": {
|
|
".": {},
|
|
"k:{\"containerPort\":8080,\"protocol\":\"TCP\"}": {
|
|
".": {},
|
|
"f:containerPort": {},
|
|
"f:protocol": {}
|
|
}
|
|
},
|
|
"f:resources": {},
|
|
"f:terminationMessagePath": {},
|
|
"f:terminationMessagePolicy": {}
|
|
}
|
|
},
|
|
"f:dnsPolicy": {},
|
|
"f:restartPolicy": {},
|
|
"f:schedulerName": {},
|
|
"f:securityContext": {},
|
|
"f:terminationGracePeriodSeconds": {}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}]
|
|
},
|
|
"spec": {
|
|
"replicas": 3,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"app": "hello-kubernetes"
|
|
}
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"app": "hello-kubernetes"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [{
|
|
"name": "hello-kubernetes",
|
|
"image": "jmsearcy/hello-kubernetes:1.5",
|
|
"ports": [{
|
|
"containerPort": 8080,
|
|
"protocol": "TCP"
|
|
}],
|
|
"resources": {},
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
"terminationMessagePolicy": "File",
|
|
"imagePullPolicy": "IfNotPresent"
|
|
}],
|
|
"restartPolicy": "Always",
|
|
"terminationGracePeriodSeconds": 30,
|
|
"dnsPolicy": "ClusterFirst",
|
|
"securityContext": {},
|
|
"schedulerName": "default-scheduler"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"type": "RollingUpdate",
|
|
"rollingUpdate": {
|
|
"maxUnavailable": "25%",
|
|
"maxSurge": "25%"
|
|
}
|
|
},
|
|
"revisionHistoryLimit": 10,
|
|
"progressDeadlineSeconds": 600
|
|
},
|
|
"status": {}
|
|
},
|
|
"oldObject": null,
|
|
"dryRun": false,
|
|
"options": {
|
|
"kind": "CreateOptions",
|
|
"apiVersion": "meta.k8s.io/v1"
|
|
}
|
|
}
|
|
} |