Comments (3)
After #7, new command to connect is:
kubectl -n example-mariadb run -it --rm mysql-client --image=arey/mysql-client --restart=Never -- -h example-mariadb-0.example-mariadb.example-mariadb.svc.cluster.local -u db_user -pCHANGEME -D db
from mariadb-operator.
Another thing I'd like to do is show how easy it is to create a service to expose a particular pod (e.g. index -0
for the default master) to the external world: https://itnext.io/exposing-statefulsets-in-kubernetes-698730fb92a1
apiVersion: v1
kind: Service
metadata:
name: mariadb-master
spec:
type: NodePort
selector:
statefulset.kubernetes.io/example-mariadb: example-mariadb-0
ports:
- protocol: TCP
port: 3360
targetPort: 3360
from mariadb-operator.
Working on this now; had to work on a few other initiatives in the mean time, but I'm back to working on making this work with the Drupal Operator for a demo of an HA db backend for it.
from mariadb-operator.
Related Issues (14)
- Generate initial scaffold operator with one node, no cluster HOT 5
- Update to operator sdk v0.16.0
- Specifying storage class HOT 5
- Port operator to Operator SDK 1.0 layout HOT 1
- Deployment of replication mariadb server HOT 3
- Operator not built for ARM HOT 5
- Add option to back up database PVC HOT 3
- Add cluster management capability HOT 3
- Failover to replica automatically if master is absent HOT 3
- Allow scaling from one master pod to replicas, and vice-versa HOT 4
- Use StatefulSet instead of Deployment for MariaDB Pod(s) HOT 2
- The project is still alive ? HOT 1
- Update CI for Molecule v3, update base operator image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mariadb-operator.