gdha / k3s-intro Goto Github PK
View Code? Open in Web Editor NEWLightweight kubernetes k3s introduction with hands-on
License: Apache License 2.0
Lightweight kubernetes k3s introduction with hands-on
License: Apache License 2.0
kubectl get services -n mysql
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
local-database-mysql ClusterIP 10.43.219.239 <none> 3306/TCP 69s
mysql-svc LoadBalancer 10.43.141.222 192.168.33.13 3306:30689/TCP 4s
Press any key to continue
On which worker node is the database running?
kubectl get pods -n mysql local-database-mysql-6c9fc799c5-46lgh -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
local-database-mysql-6c9fc799c5-46lgh 1/1 Running 0 79s 10.42.2.6 node3 <none> <none>
Press any key to continue
Connecting to database on 192.168.33.13
Type "exit;" to exit from database
mysql -h 192.168.33.13 -P3306 -u root -pr00tpassw0rd
mysql: [Warning] Using a password on the command line interface can be insecure.
exit;
ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.33.13' (110)
Press any key to continue
Connect to mysql database via host system (mysql-client must be installed).
Copy/paste the following on another terminal window (e.g. Linux or OS/x host) :
-----------------------------------------------------------------------------
mysql -h 192.168.33.13 -P3306 -u root -pr00tpassw0rd
-----------------------------------------------------------------------------
Type "exit;" to exit from database
root@node1:/vagrant# mysql -h 192.168.33.13 -P3306 -u root -pr00tpassw0rd
mysql: [Warning] Using a password on the command line interface can be insecure.
^C
root@node1:/vagrant# mysql -h 192.168.33.13 -P30689 -u root -pr00tpassw0rd
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 47
Server version: 5.7.28 MySQL Community Server (GPL)
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit;
Bye
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
None detected
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.