Skip to content

Instantly share code, notes, and snippets.

@wabouhamad
Created October 11, 2017 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wabouhamad/6fe8c99a2cfe94c89dc1cb8ab85ff5ce to your computer and use it in GitHub Desktop.
Save wabouhamad/6fe8c99a2cfe94c89dc1cb8ab85ff5ce to your computer and use it in GitHub Desktop.
{
"kind": "Pod",
"apiVersion": "v1",
"metadata": {
"name": "hello-openshift",
"creationTimestamp": null,
"labels": {
"name": "hello-openshift"
}
},
"spec": {
"containers": [
{
"name": "hello-openshift",
"image": "openshift/hello-openshift:v1.0.6",
"ports": [
{
"containerPort": 8080,
"protocol": "TCP"
}
],
"resources": {
"requests": {
"cpu" : "5m",
"memory": "25Mi"
},
"limits": {
"cpu" : "5m",
"memory": "25Mi"
}
},
"livenessProbe": {
"failureThreshold": 3,
"httpGet": {
"httpHeaders": [
{
"name": "X-Custom-Header",
"value": "Awesome"
}
],
"path": "/index.html",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 3,
"periodSeconds": 3,
"successThreshold": 1,
"timeoutSeconds": 1
},
"readinessProbe": {
"failureThreshold": 3,
"httpGet": {
"httpHeaders": [
{
"name": "X-Custom-Header",
"value": "Awesome"
}
],
"path": "/index.html",
"port": 8080,
"scheme": "HTTP"
},
"initialDelaySeconds": 3,
"periodSeconds": 3,
"successThreshold": 1,
"timeoutSeconds": 1
},
"terminationMessagePath": "/dev/termination-log",
"imagePullPolicy": "IfNotPresent",
"capabilities": {},
"securityContext": {
"capabilities": {},
"privileged": false
}
}
],
"restartPolicy": "Always",
"dnsPolicy": "ClusterFirst",
"serviceAccount": ""
},
"status": {}
}
{
"apiVersion": "v1",
"kind": "ResourceQuota",
"metadata": {
"name": "quota"
},
"spec": {
"hard": {
"memory": "1200Gi",
"cpu": "600",
"pods": "11000",
"services": "5",
"replicationcontrollers":"5",
"resourcequotas":"1"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment