Skip to content

Commit

Permalink
🎸 Update mysql and redis service name
Browse files Browse the repository at this point in the history
  • Loading branch information
Cairry committed Dec 19, 2024
1 parent 4492403 commit 405ea29
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions deploy/kubernetes/mysql.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: mysql
name: w8t-mysql
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: mysql
app: w8t-mysql
template:
metadata:
labels:
app: mysql
app: w8t-mysql
spec:
containers:
- name: mysql
- name: w8t-mysql
image: mysql:8.0
env:
- name: MYSQL_ROOT_PASSWORD
Expand All @@ -36,11 +36,11 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: mysql
name: w8t-mysql
namespace: default
spec:
selector:
app: mysql
app: w8t-mysql
ports:
- protocol: TCP
port: 3306
Expand Down
12 changes: 6 additions & 6 deletions deploy/kubernetes/redis.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
name: w8t-redis
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: redis
app: w8t-redis
template:
metadata:
labels:
app: redis
app: w8t-redis
spec:
containers:
- name: redis
- name: w8t-redis
image: redis:latest
ports:
- containerPort: 6379
Expand All @@ -31,11 +31,11 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: redis
name: w8t-redis
namespace: default
spec:
selector:
app: redis
app: w8t-redis
ports:
- protocol: TCP
port: 6379
Expand Down

0 comments on commit 405ea29

Please sign in to comment.