Created
November 29, 2018 02:21
-
-
Save mcastelino/3819a23a4e2544ce700d10cf227315f0 to your computer and use it in GitHub Desktop.
k8s admission review request
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"kind": "AdmissionReview", | |
"apiVersion": "admission.k8s.io/v1beta1", | |
"request": { | |
"uid": "1a41e160-f369-11e8-b020-000d3afdac62", | |
"kind": { | |
"group": "", | |
"version": "v1", | |
"kind": "Pod" | |
}, | |
"resource": { | |
"group": "", | |
"version": "v1", | |
"resource": "pods" | |
}, | |
"namespace": "default", | |
"operation": "CREATE", | |
"userInfo": { | |
"username": "system:serviceaccount:kube-system:replicaset-controller", | |
"uid": "a0e767e4-f368-11e8-b020-000d3afdac62", | |
"groups": [ | |
"system:serviceaccounts", | |
"system:serviceaccounts:kube-system", | |
"system:authenticated" | |
] | |
}, | |
"object": { | |
"metadata": { | |
"generateName": "php-apache-runc-878945998-", | |
"creationTimestamp": null, | |
"labels": { | |
"pod-template-hash": "878945998", | |
"run": "php-apache-runc" | |
}, | |
"ownerReferences": [ | |
{ | |
"apiVersion": "apps/v1", | |
"kind": "ReplicaSet", | |
"name": "php-apache-runc-878945998", | |
"uid": "1a3ab45e-f369-11e8-b020-000d3afdac62", | |
"controller": true, | |
"blockOwnerDeletion": true | |
} | |
] | |
}, | |
"spec": { | |
"volumes": [ | |
{ | |
"name": "default-token-lnbmt", | |
"secret": { | |
"secretName": "default-token-lnbmt" | |
} | |
} | |
], | |
"containers": [ | |
{ | |
"name": "php-apache", | |
"image": "k8s.gcr.io/hpa-example", | |
"ports": [ | |
{ | |
"containerPort": 80, | |
"protocol": "TCP" | |
} | |
], | |
"resources": { | |
"requests": { | |
"cpu": "200m" | |
} | |
}, | |
"volumeMounts": [ | |
{ | |
"name": "default-token-lnbmt", | |
"readOnly": true, | |
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount" | |
} | |
], | |
"terminationMessagePath": "/dev/termination-log", | |
"terminationMessagePolicy": "File", | |
"imagePullPolicy": "Always" | |
} | |
], | |
"restartPolicy": "Always", | |
"terminationGracePeriodSeconds": 30, | |
"dnsPolicy": "ClusterFirst", | |
"serviceAccountName": "default", | |
"serviceAccount": "default", | |
"securityContext": { | |
}, | |
"schedulerName": "default-scheduler", | |
"tolerations": [ | |
{ | |
"key": "node.kubernetes.io/not-ready", | |
"operator": "Exists", | |
"effect": "NoExecute", | |
"tolerationSeconds": 300 | |
}, | |
{ | |
"key": "node.kubernetes.io/unreachable", | |
"operator": "Exists", | |
"effect": "NoExecute", | |
"tolerationSeconds": 300 | |
} | |
], | |
"priority": 0 | |
}, | |
"status": { | |
} | |
}, | |
"oldObject": null, | |
"dryRun": false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment