發表文章

Kubernetes: automatically remove old custom resource definitions

圖片
up vote 0 down vote favorite I'm working with custom resource definitions in Kubernetes. For example I have the following definition: apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: name: myresources.test.example.com spec: group: test.example.com names: kind: MyResource listKind: MyResourceList plural: myresources singular: myresource scope: Namespaced version: v1alpha1 Is there any way to store e.g. only 1000 last created resources of type MyResource and automatically delete everything older? I know about pod eviction policies. Is it somehow applicable to custom resources? configuration kubernetes resources share | improve this question asked yesterday vania-pooh 1,806 1 15 32 You can try look to cronjob which will check and delete all which is older than. – Nick Rak 18 hours ago add a comment  |  up vote 0 down vote favorite I'm working with custom resource de

Carbon dioxide

圖片
"CO2" redirects here. For other uses, see CO2 (disambiguation). Carbon dioxide Names Other names Carbonic acid gas Carbonic anhydride Carbonic oxide Carbon oxide Carbon(IV) oxide Dry ice (solid phase) Identifiers CAS Number 124-38-9   Y 3D model (JSmol) Interactive image Interactive image 3DMet B01131 Beilstein Reference 1900390 ChEBI CHEBI:16526   Y ChEMBL ChEMBL1231871   N ChemSpider 274   Y ECHA InfoCard 100.004.271 EC Number 204-696-9 E number E290 (preservatives) Gmelin Reference 989 KEGG D00004   Y MeSH Carbon+dioxide PubChem CID 280 RTECS number FF6400000 UNII 142M471B3J   Y UN number 1013 (gas), 1845 (solid) InChI InChI=1S/CO2/c2-1-3   Y Key: CURLTUGMZLYLDI-UHFFFAOYSA-N   Y InChI=1/CO2/c2-1-3 Key: CURLTUGMZLYLDI-UHFFFAOYAO SMILES O=C=O C(=O)=O Properties Chemical formula C O 2 Molar mass 44.01 g·mol −1 Appearance Colorless gas Odor Low concentrations: none High concentrations: sharp; acidic [1] Density 1562 kg/m 3 (solid at 1 atm and −78.5 °C) 1101 kg/m 3 (liquid at