This is based on the original example-voting-app from docker-examples(https://github.com/dockersamples)
modified to work on Kubernetes
Deploy Docker's example voting app on Kubernetes
This is based on the original example-voting-app from docker-examples(https://github.com/dockersamples)
modified to work on Kubernetes
the pods are running, port 31000 and port 31001 are used by a process called kube-proxy. to visiti the web page, I visit localhost:31000 at the master node, but it displays "Unable to establish connection". what's the reason, thanks!
Thank you for such a great overview of the k8s functionality, but I encountered an issue related to postgres-pod. The current configuration doesn't work on the latest GCP
// postgres-pod.yml
apiVersion: v1
kind: Pod
metadata:
name: postgres-pod
labels:
name: postgres-pod
app: demo-voting-app
spec:
containers:
- name: postgres
image: postgres:9.4
ports:
- containerPort: 5432
It generates an error while pod is starting by executing a command kubectl create -f postgres-pod.yml
:
Error: Database is uninitialized and superuser password is not specified.
You must specify POSTGRES_PASSWORD for the superuser. Use
"-e POSTGRES_PASSWORD=password" to set it in "docker run".
You may also use POSTGRES_HOST_AUTH_METHOD=trust to allow all connections
without a password. This is *not* recommended. See PostgreSQL
documentation about "trust":
I fixed it this way:
// postgres-pod.yml
apiVersion: v1
kind: Pod
metadata:
name: postgres-pod
labels:
name: postgres-pod
app: demo-voting-app
spec:
containers:
- name: postgres
image: postgres:9.4
env:
- name: POSTGRES_HOST_AUTH_METHOD
value: "trust"
ports:
- containerPort: 5432
It would be really cool if you can upgrade the repo with the working example
How worker pod knows that it needs to send the data to Redis/Postgres, generally pods get attached to service from selector,
And how voting/result app knows to send the data to redis/postgres from redis/postgres service
In the udemy, you explained that Redis/Postgres has services connecting to the apps and worker pods.
-redis service connected to voting-app and worker pod
-postgres service connected to result-app and worker pod
result app not working - its not updating the result, how can we troubleshoot
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.