boilerplate for setting requests and limits blog post

This commit is contained in:
Daniele Polencic
2020-09-02 10:24:05 +08:00
parent 288d6f0e61
commit bf062fc9d8
10 changed files with 70 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 KiB

View File

@@ -172,6 +172,22 @@ export const Authors = {
link: 'https://www.linkedin.com/in/cnesbittsmith/',
description: 'Chris is a young and enthusiastic instructor at Learnk8s.',
},
santhoshNagaraj: {
id: 'santhosh-nagaraj',
fullName: 'Santhosh Nagaraj',
avatar: (
<img
src='assets/authors/santhosh_nagaraj/santhosh_nagaraj-64x64.jpg'
srcSet='
assets/authors/santhosh_nagaraj/santhosh_nagaraj-64x64.jpg 1x,
assets/authors/santhosh_nagaraj/santhosh_nagaraj-128x128.jpg 2x
'
alt='Santhosh Nagaraj'
/>
),
link: 'https://www.linkedin.com/in/santhosh-nagaraj-s/',
description: 'Santhosh is a software engineer with a passion for cloud-native technologies.',
},
}
export function Register(store: Store) {

View File

@@ -43,6 +43,7 @@ import * as AllocatableResources from './allocatable-resources/allocatable-resou
import * as YAMLValidation from './yaml-validation/yaml-validation'
import * as Gatekeeper from './gatekeeper/gatekeeper'
import * as GracefulShutdown from './graceful-shutdown/graceful-shutdown'
import * as RequestsLimits from './requests-limits/requests-limits'
import * as BiteSizedListing from './biteSized'
import * as BiteSizedArticles from './bite-sized-articles'
@@ -115,4 +116,5 @@ export function register(store: Store) {
YAMLValidation.Register(store)
Gatekeeper.Register(store)
GracefulShutdown.Register(store)
RequestsLimits.Register(store)
}

View File

@@ -0,0 +1 @@
Hello

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

View File

@@ -0,0 +1 @@
<svg viewBox="0 0 1200 800" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path fill="#F9F2E7" d="M0 0h1200v800H0z"></path><g transform="translate(503.500000, 336.000000) rotate(-10.000000) translate(-503.500000, -336.000000) translate(-242.000000, -120.000000)"><path d="M.6 655.9h1463.7v49H.6zm0-98h1463.7v49H.6zm0-98h1463.7v49H.6zm0-98h1463.7v49H.6zm0-98h1463.7v49H.6zm0-98h1463.7v49H.6zm0-98h1463.7v49H.6z" fill="#F9F8E7"></path><path fill="#EFDCBD" d="M353.4 466.9h2.8v389.9h-2.8zm595.7-190.4h2.8v522.9h-2.8zM608.9 32.9h2.8v504.35h-2.8zm653.8-14h2.8v809.9h-2.8zm158.2 4.2h2.8V581h-2.8z"></path><g transform="translate(0.599999, 867.299985)"><path fill="#8FBE00" d="M0 0h1465.1v43.4H0z"></path><path fill="#F7B500" d="M608.3 0h655.2v43.4H608.3z"></path><path d="M609.7 43.4L1262.099.093 1262.1 0h203v43.4H609.7z" fill="#E02020"></path></g><rect width="161" height="43.4" rx="3.5" transform="translate(192.399996, 414.399993)" fill="#B7E7EB"></rect><rect width="161" height="43.4" rx="3.5" transform="translate(1262.699977, 560.699990)" fill="#B7E7EB"></rect><rect width="255.5" height="43.4" rx="3.5" transform="translate(353.399993, 463.399992)" fill="#B7E7EB"></rect><rect width="653.8" height="43.4" rx="3.5" transform="translate(608.899988, 511.699991)" fill="#B7E7EB"></rect><rect fill="#E4F5BC" x="608.9" y="565.6" width="653.8" height="192.5" rx="15.4"></rect><rect width="161" height="43.4" rx="3.5" transform="translate(468.899991, 168.699997)" fill="#B7E7EB"></rect><path fill="#67CCD5" d="M233 129h204v24H233z"></path><rect width="161" height="43.4" rx="3.5" transform="translate(629.899988, 217.699996)" fill="#B7E7EB"></rect><rect width="235.9" height="43.4" rx="3.5" transform="translate(629.899988, 315.699995)" fill="#B7E7EB"></rect><rect width="189" height="43.4" rx="3.5" transform="translate(629.899988, 364.699994)" fill="#B7E7EB"></rect><rect width="161" height="43.4" rx="3.5" transform="translate(790.899985, 266.699995)" fill="#B7E7EB"></rect><rect width="276.5" height="43.4" rx="3.5" transform="translate(192.399996, 119.699998)" fill="#B7E7EB"></rect><path fill="#67CCD5" d="M500 178h99v24h-99zm149 49h121v24H649zm180 49h83v24h-83zm-123 49h83v24h-83zm-37 49h103v24H669zm-448 50h103v24H221zm191 49h139v24H412zm417 48h241v24H829zm451 49h120v24h-120zM221 129h219v24H221z"></path><path d="M353.4 817.6h912.1V861H353.4zM.6 768.6h951.3V812H.6z" fill="#39280E"></path><g transform="translate(632.699988, 585.199990)"><circle fill="#688A00" cx="15.967" cy="15.967" r="15.967"></circle><path fill="#FFF" fill-rule="nonzero" d="M18.426 22.212V8.962h-3.313l-3.261 1.992v3.054l2.899-1.734h.077v9.938z"></path></g><g transform="translate(632.699988, 709.799988)"><circle fill="#688A00" cx="15.967" cy="15.967" r="15.967"></circle><path d="M15.909 22.393c3.241 0 5.525-1.65 5.512-3.986.013-1.623-1.074-2.769-3.209-3.001v-.104c1.579-.168 2.73-1.184 2.717-2.666.013-2.232-2.057-3.855-4.994-3.855-3.002 0-5.137 1.714-5.15 4.14h3.442c.013-.802.718-1.371 1.708-1.371.906 0 1.54.55 1.527 1.32.013.802-.738 1.371-1.812 1.371h-1.346v2.484h1.346c1.165 0 1.98.57 1.967 1.372.013.822-.686 1.397-1.682 1.397-1.035 0-1.773-.55-1.786-1.32h-3.623c.013 2.472 2.245 4.219 5.383 4.219z" fill="#FFF" fill-rule="nonzero"></path></g><g transform="translate(632.699988, 628.599989)"><circle fill="#688A00" cx="15.967" cy="15.967" r="15.967"></circle><path d="M21.162 22.212v-2.873h-5.175v-.077l1.242-1.036c3.021-2.516 3.791-3.823 3.791-5.357 0-2.471-2.025-4.088-5.202-4.088-3.086 0-5.091 1.714-5.085 4.502h3.416c-.006-1.112.673-1.733 1.67-1.733.99 0 1.694.614 1.694 1.63 0 .938-.601 1.546-1.578 2.355l-4.943 4.089v2.588h10.17z" fill="#FFF" fill-rule="nonzero"></path></g><path fill="#415700" d="M680 591h291v24H680zm0 42h533v24H680zm0 36h366v24H680zm0 45h487v24H680z"></path><path fill="#8B6222" d="M200 779h568v24H200zm388 48h424v24H588z"></path></g></g></svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1,50 @@
import { Action, Store } from '../store'
import { Authors } from '../aboutUs'
import { join } from 'path'
import { toVFile } from '../files'
export const ResourceRequests = {
id: 'requests-limits',
url: '/setting-cpu-memory-limits-requests',
title: 'Setting proper resource limits and requests in Kubernetes',
description: `...................................................................................................`,
}
export function Register(store: Store) {
store.dispatch(Action.pages.add(ResourceRequests))
store.dispatch(
Action.openGraphs.add({
id: 'og-requests-limits',
pageId: ResourceRequests.id,
imagePath: 'src/requests-limits/requests-limits.png',
title: ResourceRequests.title,
description: ResourceRequests.description,
}),
)
store.dispatch(
Action.blogPosts.add({
id: 'bp-requests-limits',
pageId: ResourceRequests.id,
authorId: Authors.santhoshNagaraj.id,
description: ResourceRequests.description,
title: ResourceRequests.title,
publishedDate: '2020-09-02',
content: toVFile({ path: join(__dirname, 'content.md') }),
}),
)
store.dispatch(
Action.tags.add({
id: ResourceRequests.id + '-general-post',
tag: 'general-post',
pageId: ResourceRequests.id,
}),
)
store.dispatch(
Action.previewPictures.add({
id: 'requests-limits-picture',
pageId: ResourceRequests.id,
imagePath: 'src/requests-limits/requests-limits.svg',
}),
)
}