Exercise

1 minute read

In this exercise, you will run the VotingApp components in Pods.

  1. Create the votingapp folder on your local machine. Inside this one, create the YAML files containing the Pod specifications for each microservice, following the instructions from the table below:

    MicroserviceFile NamePod NameContainer Image
    Vote UIpod-voteui.yamlvote-uivoting/vote-ui:latest
    Votepod-vote.yamlvotevoting/vote:latest
    Redispod-redis.yamlredisredis:7.0.8-alpine3.17
    Workerpod-worker.yamlworkervoting/worker:latest
    Postgrespod-db.yamldbpostgres:15.1-alpine3.17
    Resultpod-result.yamlresultvoting/result:latest
    Result UIpod-resultui.yamlresult-uivoting/result-ui:latest

    For the db Pod, make sure to specify an environment variable POSTGRES_PASSWORD with the value postgres.

  2. Deploy the application defined by all of these specifications

  3. What do you notice ?

  4. Delete the application