*** 業力。呀 🦆。
Davey Jones : You will watch this.
Davey Jones : Let no joyful voice be heard! Let no man look up at the sky with hope! And let this day be cursed by we who ready to wake... the Kraken!
'Bootstrap' Bill Turner : No!
Kubernetes。
妳是人生掌舵手。
Manifest。
聲稱顯化太假掰。
Yet Another Markup Language。
話說到底。不過是視覺化心中的夢。
為何複雜。不就是他X的簡單直白。
*** 備料。
~ master/backend-server/Dockerfile
~ master/kubernetes-manifests/backend-deployment.yaml
~ master/kubernetes-manifests/backend-service.yaml
~ master/frontend-app/Dockerfile
~ master/kubernetes-manifests/frontend-deployment.yaml
~ master/kubernetes-manifests/frontend-service.yaml
*** 步驟。
內在是基底
``` master/backend-server/Dockerfile
FROM node
RUN mkdir node-app
WORKDIR /node-app
COPY . .
RUN npm install
CMD ["node","index.js"]
EXPOSE 3000
```
內在是基底之準則
``` master/kubernetes-manifests/backend-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend-deployment
spec:
selector:
matchLabels:
app: backend-deployment
tier: backend
template:
metadata:
labels:
app: backend-deployment
tier: backend
spec:
containers:
-
image: kube-human-backend:simple 極簡人生
imagePullPolicy: Always 終生學習
name: backend-server
ports:
-
containerPort: 3000
```
內在是基底之實踐步驟
```master/kubernetes-manifests/backend-service.yaml
apiVersion: v1
kind: Service
metadata:
name: backend-service
spec:
ports:
- port: 3000
targetPort: 3000
protocol: TCP 禮尚往來之三向交握。
懂得耐心傾聽(ACK)。
懂得耐心傾聽(ACK)。
不驕不躁。道聽塗說。
selector:
app: backend-deployment
tier: backend
```
外在要乾淨
``` master/frontend-app/Dockerfile
FROM nginx
COPY ./dist/frontend-app /usr/share/nginx/html
EXPOSE 80
```
外在要乾淨之準則
``` master/kubernetes-manifests/frontend-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend-deployment
spec:
selector:
matchLabels:
app: frontend-deployment
tier: frontend
template:
metadata:
labels:
app: frontend-deployment
tier: frontend
spec:
containers:
- image: kube-human-frontend:simple 極簡人生
imagePullPolicy: Always 終生學習
name: frontend-app
ports:
- containerPort: 80
```
外在要乾淨之實踐步驟
``` master/kubernetes-manifests/frontend-service.yaml
apiVersion: v1
kind: Service
metadata:
name: frontend-service
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP 禮尚往來之三向交握。
懂得耐心傾聽(ACK)。
懂得耐心傾聽(ACK)。
不驕不躁。道聽塗說。
selector:
app: frontend-deployment
tier: frontend
type: LoadBalancer 勞逸結合之負載平衡。
多數人選擇隨遇而安的RoundRobin。
多數人選擇隨遇而安的RoundRobin。
想當然也可選擇注重內在的加權人生。
若有興趣請移動手指點擊 DNS 加速。
```
*** Three-layers-of-Graph-Technologies。
Frondend ↠ FullStack ↠ Backend
Vizalization ↠ Analysis ↠ Database
D3.js ↠ Pregel ↠ OrientDB
圖。視。三部曲。
進度條由妳決定。
*** Neo4j。OrientDB。Neptune。
OrientDB and Neo4j are both graph databases, but OrientDB is also a document database and SQL database. Amazon Neptune is a cloud-based graph database. Here's some related information about these databases:
Neo4j:
- Initial release in 2007, current release in March 2024
- An open-source graph database with a mature set of tools.
- Neo4j is a better choice for storing graphs.
OrientDB:
- Initial release in 2010, current release in March 2024
- An open-source NoSQL database management system that can be used for multimodel data, such as graphs, documents, and key-value pairs.
- OrientDB supports multiple query languages, including SQL-like
- queries,
- graph traversals using Gremlin, and
- pattern-matching queries with OrientDB's SQL extensions.
Amazon Neptune:
- Initial release in 2017, current release in March 2024
- A cloud-based graph database that is faster than Neo4j.
- Amazon Neptune is only available on AWS, while Neo4j can be used on-prem or with other cloud providers.
動物のうた。乖寶寶們。背起來唷。