Kubernetes Programming with Go: Programming Kubernetes Clients and Operators Using Go and the Kubernetes API 1st Edition Philippe Martin download
Kubernetes Programming with Go: Programming Kubernetes Clients and Operators Using Go and the Kubernetes API 1st Edition Philippe Martin download
https://ebookmeta.com/product/kubernetes-programming-with-go-
programming-kubernetes-clients-and-operators-using-go-and-the-
kubernetes-api-1st-edition-philippe-martin/
https://ebookmeta.com/product/kubernetes-preparing-for-the-cka-
and-ckad-certifications-martin/
https://ebookmeta.com/product/nonsequential-and-distributed-
programming-with-go-christian-maurer/
https://ebookmeta.com/product/design-school-type-a-practical-
guide-for-students-and-designers-1st-edition-richard-poulin/
Blockchain Basics 1st Edition Daniel Drescher
https://ebookmeta.com/product/blockchain-basics-1st-edition-
daniel-drescher/
https://ebookmeta.com/product/junie-b-kim-and-the-imbecilic-
malodorous-bus-1st-edition-h-p-vingerhans/
https://ebookmeta.com/product/the-power-of-individual-and-
community-in-ancient-athens-and-beyond-essays-in-honour-of-john-
k-davies-jan-haywood-editor/
https://ebookmeta.com/product/immortal-family-a-mage-s-
cultivation-book-6-1st-edition-bruce-sentar/
https://ebookmeta.com/product/the-reliability-of-the-cognitive-
mechanism-a-mechanist-account-of-empirical-justification-1st-
edition-william-j-talbott/
Natural History 2nd Edition Dk
https://ebookmeta.com/product/natural-history-2nd-edition-dk/
Kubernetes Programming
with Go
Programming Kubernetes Clients
and Operators Using
Go and the Kubernetes API
Philippe Martin
Kubernetes Programming with Go: Programming Kubernetes Clients and Operators
Using Go and the Kubernetes API
Philippe Martin
Blanquefort, France
Introduction������������������������������������������������������������������������������������������������������������xix
v
Table of Contents
vi
Table of Contents
Toleration������������������������������������������������������������������������������������������������������������������������������� 65
Well-Known Labels���������������������������������������������������������������������������������������������������������������� 66
Writing Kubernetes Resources in Go������������������������������������������������������������������������������������������ 67
Importing the Package���������������������������������������������������������������������������������������������������������� 67
The TypeMeta Fields�������������������������������������������������������������������������������������������������������������� 68
The ObjectMeta Fields����������������������������������������������������������������������������������������������������������� 69
Spec and Status�������������������������������������������������������������������������������������������������������������������� 76
Comparison with Writing YAML Manifests����������������������������������������������������������������������������� 76
A Complete Example������������������������������������������������������������������������������������������������������������������� 78
Conclusion���������������������������������������������������������������������������������������������������������������������������������� 83
vii
Table of Contents
Conversion��������������������������������������������������������������������������������������������������������������������������� 101
Serialization������������������������������������������������������������������������������������������������������������������������� 103
RESTMapper����������������������������������������������������������������������������������������������������������������������������� 105
Kind to Resource����������������������������������������������������������������������������������������������������������������� 106
Resource to Kind����������������������������������������������������������������������������������������������������������������� 107
Finding Resources��������������������������������������������������������������������������������������������������������������� 107
The DefaultRESTMapper Implementation���������������������������������������������������������������������������� 107
Conclusion�������������������������������������������������������������������������������������������������������������������������������� 108
viii
Table of Contents
x
Table of Contents
xi
Table of Contents
Index��������������������������������������������������������������������������������������������������������������������� 309
xii
About the Author
Philippe Martin has been working with Kubernetes for
five years, first by creating an Operator to deploy video
CDNs into the cloud, later helping companies deploy their
applications into Kubernetes, then writing a Client to help
developers work in a Kubernetes environment. Philippe
has passed the CKAD, CKA, and CKS certifications. He has
extensive experience with distributed systems and open-
source software: he started his career 20 years ago creating
thin clients based on the Linux kernel and open-source
components. He is currently working at Red Hat on the
Development Tools team.
Philippe has been active in the development of Kubernetes, especially its
documentation, and participates in the translation of the official documentation into
French, has edited two reference books about the Kubernetes API and kubectl, and is
responsible for the French translation of the Kubernetes Dashboard. He participated in
Google Season of Docs to create the new Kubernetes API Reference section of the official
documentation and is maintaining it.
xiii
About the Technical Reviewers
Bartosz Majsak writes code for fun and profit while proudly
wearing a red fedora (also known as the Red Hat). He has
been long-time open-source contributor and Java developer
turned into Golang aficionado. Bartosz is overly enthusiastic
about coffee, open source, and speaking at conferences,
not necessarily in that order. One thing that perhaps proves
he is not a total geek is his addiction to alpine skiing (and
running).
xv
Acknowledgments
I would like to thank the whole Anevia “CDN” team who started working with me on
Kubernetes back in 2018: David, Ansou, Hossam, Yassine, Étienne, Jason, and Michaël.
Special thanks to Damien Lucas for initiating this project and for having trusted us with
this challenge.
My discovery of Kubernetes has been much easier and pleasant thanks to the TGIK
channel and its numerous episodes, hosted by Joe Beda, Kris Nova, and many others.
Plus, thanks to all the Kubernetes community for such a great ecosystem!
xvii
Another Random Scribd Document
with Unrelated Content
Grant Made:[275]
(a) Not Dependent (probably):
Domestic servant; age 68. Granted $150. No information could be obtained in
1909.
Domestic servant; age 35. Granted $75 for an operation. Self-supporting.
Cook; age 66. Granted $50. No information could be obtained in 1909.
Housewife; age 50. Granted $75 for washing machine. Ejected from Ingleside.
Small amount for current expenses.
Cannery clerk; age 61. Granted $20, and later $75, to go to hospital and then
to the country. Now with friends.
Plasterer; age 56. Granted $50. Later arrested and in jail three months.
Peddler; age 54. Granted $60 and a free license. No information obtained in
1909.
Carpenter; age 32. Tuberculous. Granted $300 to go a warmer climate. Now
recovering.
(b) Dependent:
Cook; age 61. Living on savings before fire. Granted $100. Later assisted by A.
C. In Relief Home.
Seamstress; age 59. Granted $100. Assisted by private charity.
Bookkeeper; age 65. Granted $100. In Home for the Aged.
Janitress; age 50. Granted $50. Sent to hospital.
Domestic servant; age 38. Granted $75. Partially self-supporting; in and out of
Relief Home.
Nurse; age 78. Granted $200. Went to niece. Assisted by several charities.
Housewife; age 95. Granted $25 and later $125. In Home for the Aged.
Rooming-house keeper; age 72. Granted $75. Went to hospital. Assisted by
private charity.
Nurse; age 65. Granted $100. In Relief Home.
Cloak maker; age 65. Granted $100. Assisted by charity. In Relief Home.
Housewife; age 81. Granted $140 in instalments. In Relief Home.
Dressmaker; age 57. Granted $100 and sewing machines. In Relief Home.
House worker; age 60. Granted $100 and truss. In Relief Home.
Seamstress; age 65. Granted $125 and sewing machine. In Relief Home.
Peddler; age 60. Granted $20. In Relief Home.
(c) Dead:
Seamstress; age 75. Granted $150 in instalments. Died September, 1907.
Nurse; age 79. Granted $100 “till well enough to work.” Died April, 1908.
Janitor; age 58. Granted $50 for stove and bedding. Died February, 1907.
Lecturer on psychology; age 70. Granted $75 and transportation to San Diego.
In Relief Home. Died 1908.
Housewife; age 67. Granted $150. Went to relatives. Died 1907.
Grant Refused:
Seamstress; age 36. Because earning $12 per week.
Nurse; age 64. In need of permanent care. Died in Relief Home June, 1909.
Chambermaid; age 70. In need of permanent care.
Children’s nurse; age 73. In need of permanent care. In Relief Home.
Domestic servant; age 70. Asked for money to pursue invalid claim to property.
No Action—Check Canceled:
Housewife; age 55. Could not be found by visitor.
Dressmaker; age 73. Granted $100 and sewing machine. Could not be found.
Cannery worker; age 40. Granted $75. Could not be found by visitor. Assisted
later by Associated Charities to go to the country.
Maker of knitted articles; age 68. Granted $100 and sewing machine. Drank to
excess. In Relief Home.
3. The most conspicuous thing about those who did not apply for
rehabilitation, both men and women, is their high proportion of
disabilities, a proportion even higher than that of the applicants. Of
the 585 non-applicants among the single or widowed men and
women,[277] no less than 330, 56 per cent, were infirm or crippled, or
needed special care for some reason. Table 121 shows the nature of
their disabilities.
[277] See Table 119, p. 336.
NON-APPLICANTS
WITH EACH
Nature of SPECIFIED
disability DISABILITY
Wo-
Men Total
men
Infirm or crippled persons:
Too infirm to work 33 .. 33
Lame or crippled 19 11 30
Feeble .. 21 21
Without one leg or one arm 19 .. 19
Blind or very deaf 9 6 15
Paralyzed 11 1 12
Bed-ridden .. 3 3
Total 91 42 133
Persons needing special care:
Sick 44 23 67
Normally convalescent 31 17 48
Injured in accidents 33 2 35
Senile or demented 16 .. 16
Severely rheumatic 15 4 19
Tubercular 4 8 12
Total 143 54 197
Grand total 234 96 330
INMATES WHOSE
HISTORY WAS
Subsequent AS SPECIFIED
history
Wo-
Men Total
men
Died within one year of admission to Ingleside 31 16 47
Died within three years of admission to Ingleside 33 11 44
Went to work or to friends or relatives 83 25 108
Now in charitable institutions 124 70 194
No information available 154 38 192
Total 425 160 585
III
RESULTS
T
he final important question to be considered in this study of relief
of the aged and infirm is: What proportion of the aged and
infirm persons in the Relief Home in April, 1909, were there
solely because of the earthquake and fire of April 18, 1906? To
answer this question one must know the proportion between the total
population of San Francisco and the aged and infirm in the almshouse
for some time previous to 1906.
Admissions
Almshouse Admission
Population Average to
inmates to
of city and number of almshouse
Year per almshouse
county of almshouse per
1,000 of during
San Francisco inmates 1,000 of
population year
population
1890 298,997 736 2.5 560 1.9
1900 342,782 947 2.8 670 2.0
1905 379,847[278] 890 2.3 773 2.0
1909 409,499[278] 1,295 3.2 816 2.0
[278] Estimated.
[279] Between 1900 and 1905 the inmates of the almshouse went in and
out much more freely than they do now at the Relief Home, but the effect
on the average number present is impossible to calculate.
This beautiful arch was found practically uninjured in the midst of the ruins at
the summit of Nob Hill. Mr. James D. Phelan had it removed to the banks of a
little lake in Golden Gate Park, where it stands as a memorial to the devastated
city.
What then are some of the lessons to be learned from this review
of the San Francisco relief work that may be applied in other great
disasters?
Part V. After-Care
We are brought to see that:
1. The applications made to an emergency relief organization will
not include all who, as a result of the disaster, will eventually be
obliged to seek succor. It is demonstrated that some permanent
agency must be prepared to help those who, fighting heroically to the
very end of their resources, give up after the temporary relief
organization has discontinued active work.
2. The number of sufferers who need after-care may be
increased by families who have been attracted to the city by illusive
expectations of work.
3. The problems of family relief after a great disaster are
essentially those requiring the personal care and attention which are
characteristic of the work of an associated charities under normal
conditions. The number of families that have come to the San
Francisco Associated Charities in the years since the Corporation
turned over the relief work to it, has been far larger than before the
fire. It follows that for some years after so tremendous a disaster
there should be an increase in the force of trained workers
proportionate to the increase in the applications for rehabilitation. The
community must be prepared to pay the additional cost.
4. Grants of relief, when they must be given regularly and for a
considerable period (in the form that is often described as pensions),
should be sufficiently large to assure reasonable standards of living.
APPENDIX I
DOCUMENTS AND ORDERS
PAGE
1. List of Members Finance Committee of Relief and Red Cross
Funds and Its Permanent Committees 377
2. General Orders No. 18 379
3. Extracts from The Army in the San Francisco Disaster. By
Brigadier General C. A. Devol 383
4. Letter from General Greely to James D. Phelan 387
5. Plan of the Executive Commission 391
6. Original Housing Plan 394
7. The Incorporation of the Funds 398
8. Appointment of Board of Trustees Relief and Red Cross
Funds, February, 1909 401
9. List of Official Camps 404
10. Grants to Charitable Organizations 405
A. By Denominations and Nature of Work 405
B. By Denominations 405
11. Rehabilitation Committee: Details of Administration 406
I. Directions given by the Associated Charities 406
II. Monthly budgets 408
III. Method of work beginning July 7, 1906, in
connection with the district [section]
organization 408
IV. The centralized system 412
V. Consideration of cases out of turn 412
VI. A lesson learned regarding records 413
VII. Loose ends 415
VIII. Bookkeeping and registration notes 415
12. General Plan of Housing Committee 417
13. Statistics from Associated Charities 419
A. Receipts of San Francisco Associated Charities from all
sources, by months, from June, 1907, to September,
1912, inclusive 419
B. Disbursements of San Francisco Associated Charities for
relief and for administration, by months, from June,
1907, to September, 1912, inclusive 419
APPENDIX I
1
LIST OF MEMBERS FINANCE COMMITTEE OF RELIEF AND RED
CROSS FUNDS AND ITS PERMANENT COMMITTEES
FINANCE COMMITTEE
W. W. Morrow
John F. Merrill
Horace Davis
Appointed later:
2
GENERAL ORDERS, NO. 18
Meat Components.
10 oz. canned meat or salt meat
or canned fish, or
14 oz. fresh meat to the ration.
Bread Components.
14 oz. fresh bread or 10 oz. hard
bread, or crackers or
12 oz. flour to the ration.
Coffee and Tea.
1 lb. coffee to 15 rations or
11⁄2 lbs. tea to 100 rations.
Vegetable Components.
1
1 ⁄2 oz. beans, peas, rice or
hominy, to the ration.
3⁄4 lb. fresh vegetables (80 per