zxcvbnius / k8s-30-day-sharing Goto Github PK
View Code? Open in Web Editor NEW[ ithome 鐵人賽 ] Kubernetes 30天學習筆記
[ ithome 鐵人賽 ] Kubernetes 30天學習筆記
I tried to follow your steps in day13. However I found an issue during my first deploy. When we creating the Pod, it started wordpress first, then started mysql. After the deploy competed, the wordpress one shows
wordpress:
Container ID: docker://8cc5543acbb8b15fde01e32428456a2af2010cb15234e8ffe373775b8f99736d
Image: wordpress:4-php7.0
Image ID: docker-pullable://wordpress@sha256:c24c534fa99c17f7b0923d6ffa791b0f7fb43a821de5bc09564e46ae09d9966a
Port: 80/TCP
Host Port: 0/TCP
State: Running
Started: Sun, 03 Feb 2019 23:06:19 -0500
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Sun, 03 Feb 2019 23:05:25 -0500
Finished: Sun, 03 Feb 2019 23:05:55 -0500
Ready: True
Restart Count: 1
Environment:
WORDPRESS_DB_PASSWORD: <set to the key 'db-password' in secret 'wordpress-secret'> Optional: false
WORDPRESS_DB_HOST: 127.0.0.1
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-mktkm (ro)
It was because the MySQL is not ready when wordpress tried to connect database.
Do we have any approach to order the container start up sequence when define the deployment file like depends_on in docker compose file?
app: my-deployment:latest
spec.template.labels: Invalid value: "my-deployment:latest": a valid label must be an empty string or consist of alphanumeric characters, '-', '' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue', or 'my_value', or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9.]*)?[A-Za-z0-9])?')
In day 5 tutorial, kubectl get pods --show-all is introduced, however,
Flag --show-all has been deprecated, will be removed in an upcoming release
Show all is the default now, -a is not required
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.