Code Monkey home page Code Monkey logo

k3s-intro's People

Contributors

gdha avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

enixdark

k3s-intro's Issues

On Linux mysql uses NodePort instead of exposed port

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

Dependency Dashboard

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.

Detected dependencies

None detected


  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.