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. View Slide

  2. 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 Slide

  3. “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 Slide

  4. 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 Slide

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

    View Slide

  6. 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 Slide

  7. 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 Slide

  8. 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 Slide

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

    View Slide

  10. 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 Slide

  11. 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 Slide

  12. 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 Slide

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

    View Slide

  14. =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 Slide

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

    View Slide

  16. =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 Slide

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

    View Slide

  18. =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 Slide

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

    View Slide

  20. View Slide

  21. View Slide