Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Phippy Goes to the Zoo

Phippy Goes to the Zoo

Chris Short

July 12, 2020
Tweet

More Decks by Chris Short

Other Decks in Technology

Transcript

  1. Brought to you by...
    Written by: Matt Butcher and Karen Chu
    Phippy, Zee, and Phippy Goes to the Zoo are copyright The Linux Foundation, on behalf of the Cloud Native Computing Foundation.
    They are licensed under Creative Commons Attribution (CC-BY). See phippy.io.
    phippy.io
    Illustrated by: Bailey Beougher
    Illustration of Goldie is based on the Go Gopher
    designed by Renee French

    View full-size slide

  2. “I’m bored Aunt Phippy,” Zee slouched further down on the couch. “What are we going to do today?”
    “Why not go see the animals?” said Phippy with a smile. “We’ll go to the zoo!”
    Ú

    View full-size slide

  3. 7KHæUVWDQLPDOVWKH\FDPHXSRQZHUHWKHVL]HRIVTXLUUHOV)XUU\DQGEOXHHDFKOLWWOHDQLPDOFDUULHGDWLQ\ER[
    as they unceasingly zipped back and forth.
    “Those,” said Phippy, “are Pods. All day and all night, they run back and forth carrying their little containers.”
    “Is that all they do, Aunt Phippy?”
    Ú

    View full-size slide

  4. ,Q.XEHUQHWHV3RGVDUHUHVSRQVLEOHIRUUXQQLQJ\RXUFRQWDLQHUV(YHU\3RGKROGVDWOHDVWRQHFRQWDLQHU
    DQGFRQWUROVWKHH[HFXWLRQRIWKDWFRQWDLQHU:KHQWKHFRQWDLQHUVH[LWWKH3RGGLHVWRR

    View full-size slide

  5. As Phippy and Zee walked on, they saw a large glass enclosure. Pressed against the window was a line of happy
    little meerkat faces. “Those are the ReplicaSets,” said Phippy.
    As Zee watched, the face on the right grinned widely, and tipped itself off the ledge. In unison, the others hopped
    RYHUWRæOOWKHVSDFHDQGWKHQDQLGHQWLFDOPHHUNDWVFXUULHGXSRQWKHOHIWVLGH
    Ú(YHU\WLPHRQHOLWWOHUHSOLFDIDOOVDQRWKHURQHKRSVULJKWXSÛH[SODLQHG3KLSS\

    View full-size slide

  6. A ReplicaSet ensures that a set of identically configured Pods are running at the desired replica count. If a Pod
    drops off, the ReplicaSet brings a new one online as a replacement.

    View full-size slide

  7. Walking further, Zee pointed out a clump of burrows and warrens. While there were plenty of signs that the area
    ZDVLQKDELWHGQHLWKHU3KLSS\QRU=HHFRXOGVHHDVLQJOHPRYHPHQW
    “The Secrets are in here,” said Phippy. “but you can’t see them without these decoder glasses.”
    Zee took the pair of glasses Phippy offered, slid them on, and blushed. “Oh, my. I think I’m ready to go on now,
    Aunt Phippy.” Zee handed back the glasses, and onward they went.

    View full-size slide

  8. Secrets are used to store non-public information, such as tokens, certificates, or passwords. Secrets can
    EHDWWDFKHGWR3RGVDWUXQWLPHVRWKDWVHQVLWLYHFRQILJXUDWLRQGDWDFDQEHVWRUHGVHFXUHO\LQWKHFOXVWHU

    View full-size slide

  9. A group of iguanas gathered near a large slingshot along the shore of a pond. An island stood in the center of the
    water. An iguana threw herself into the slingshot and the other iguanas launched the little beast toward the island.
    “The Deployments release a group onto the island. Right now, they’re trying to get three out there.” said Phippy.
    At that moment another iguana rocketed into the air but missed the island with a colossal splash in the pond.
    Phippy said, “If they miss, they just keep trying until they get as many as they need.”

    View full-size slide

  10. A Deployment is a higher-order abstraction that controls deploying and maintaining a set of Pods. Behind
    the scenes, it uses a ReplicaSet to keep the Pods running, but it offers sophisticated logic for deploying,
    updating, and scaling a set of Pods within a cluster.

    View full-size slide

  11. 6HYHUDOVWRQHSLOODUVDURVHIURPDJUDVV\NQROODQGDWWKHWRSRIHDFKVDWDYXOWXUH$V=HHDQG3KLSS\ZDWFKHG
    RQHYXOWXUHVSUHDGLWVZLQJVDQGçDSSHGRIILQWRWKHGLVWDQFH1RVRRQHUKDGRQHOHIWWKDQDQRWKHUWRRNLWVSODFH
    Zee asked, “What are they doing?”
    Ú7KRVHDUH'DHPRQ6HWVÛVDLG3KLSS\Ú7KH\PDNHVXUHWRRFFXS\HYHU\SLOODUUDLQRUVKLQHGD\RUQLJKWÛ
    “I bet that if we added a new pillar, a new bird would land on it faster than you could say ‘cube cuddle,’” chuckled Phippy.

    View full-size slide

  12. 'DHPRQ6HWVSURYLGHDZD\WRHQVXUHWKDWDFRS\RID3RGLVUXQQLQJRQHYHU\QRGHLQWKHFOXVWHU$VD
    cluster grows and shrinks, the DaemonSet spreads these specially labeled Pods across all of the nodes.

    View full-size slide

  13. =HHOHWRXWDJDVS0XOWLFRORUHGçDVKHVHUXSWHGIURPWKHRSSRVLWHVLGHRIWKHFRUDO,QVWHDGRIFRPLQJRXWRIDVLQJOHKROH
    WKHæVKVHHPHGWRPDWHULDOL]HIURPWLQ\æVVXUHVDOORYHUWKHIDUVLGHRIWKHURFN
    “Ingresses are beautiful,” said a dreamy eyed Phippy.
    Enchanted, Zee muttered, “Uh-huh.”
    $VWKH\ZDONHGRQWKH\VDZDQDTXDULXPZLWKDQHQRUPRXVUHHI(GJHWRHGJHLWDSSHDUHGWKDWWKHURFNZRXOGNHHS
    DQ\WKLQJIURPSDVVLQJIURPRQHVLGHWRWKHRWKHU=HHZDWFKHGDVKXQGUHGVRIWLQ\æVKPDGHDGDVKIRUWKHFHQWHURIWKH
    IDFHRIWKHURFN$WIXOOVSHHGWKHæVKVZDPLQWRDKROHERUHGLQWRWKHURFNIDFHDQGPRPHQWDULO\YDQLVKHGIURPVLJKW

    View full-size slide

  14. ,QJUHVVHVSURYLGHDZD\WRGHFODUHWKDWWUDIILFRXJKWWREHFKDQQHOHGIURPWKHRXWVLGHRIWKHFOXVWHULQWR
    GHVWLQDWLRQSRLQWVZLWKLQWKHFOXVWHU2QHVLQJOHH[WHUQDO,QJUHVVSRLQWFDQDFFHSWWUDIILFGHVWLQHGWR
    PDQ\GLIIHUHQWLQWHUQDOVHUYLFHV

    View full-size slide

  15. =HHSRLQWHGWRWKHUDFFRRQVVSUDZOHGPRWLRQOHVVLQWKHQH[WHQFORVXUHÚ:KDWØVZURQJZLWKWKHP"Û
    Suddenly, one sprung to its feet, did jumping jacks, then settled back down for another nap.
    Ú7KRVHDUH&URQ-REVÛVDLG3KLSS\Ú0RVWO\WKH\MXVWVOHHS%XWSHULRGLFDOO\WKH\VSULQJLQWRDFWLRQWRGRDVSHFLæF
    job.”
    As she spoke, another bolted upright, grabbed a broom, swept the entire enclosure, and then dropped off to sleep
    again. “Aunt Phippy, can I bring that one home to clean my room?” Phippy laughed as they walked on.

    View full-size slide

  16. &URQ-REVSURYLGHDPHWKRGIRUVFKHGXOLQJWKHH[HFXWLRQRI3RGV7KH\DUHH[FHOOHQWIRUUXQQLQJSHULRGLF
    tasks like backups, reports, and automated tests.

    View full-size slide

  17. =HHKDOWHGDEUXSWO\,QWKHGLVWDQFHDEODFNUDLOHGIHQFHDURVH7KHDUFKHVDERYHWKHSHQZHUHPDUNHG&5'
    Between the bars, Zee could make out some peculiar critters. A giraffe with a hippopotamus head. A snake with
    UDFFRRQHDUV$OLRQZLWKDEHDYHUØVWDLO$XQLFRUQZLWKQRKRUQ=HHZDVQØWVXUHVKHOLNHGWKHORRNVRIWKDWSODFH
    “Oh,” said Phippy, a look of concern on her face, “Uh… look! It’s lunch time! We’d better head home.”
    With a look of mild relief, Zee complied. “Can we stop at Captain Kube’s Shake Shop on the way out?”

    View full-size slide

  18. &XVWRP5HVRXUFH'HILQLWLRQV RU &5'V SURYLGH DQ H[WHQVLRQ PHFKDQLVP WKDW FOXVWHU RSHUDWRUV DQG
    GHYHORSHUVFDQXVHWRFUHDWHWKHLURZQUHVRXUFHW\SHV

    View full-size slide