Skip to content

Commit

Permalink
fix: pod이름 랜덤 생성
Browse files Browse the repository at this point in the history
  • Loading branch information
jin20fd committed Jan 16, 2025
1 parent 5db9ff8 commit b1d6807
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions DBManager/src/k8s/K8SApi.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,14 @@ export class K8SApiService {
await this.redisService.delPod(podName);
}
};


this.k8sWatch.watch(path, queryParams, handlePodEvent, err => {});
}

async createPod() {
const podName = `mysql-pod${this.podCnt++}`;
const mysqlPod = {
metadata: {
name: podName,
generateName: 'mysql-',
labels: {
app: 'mysql',
},
Expand Down

0 comments on commit b1d6807

Please sign in to comment.