Skip to content

Commit

Permalink
fix: PVC & DNS slightly change
Browse files Browse the repository at this point in the history
  • Loading branch information
illyaks committed Jun 6, 2024
1 parent abca5ab commit 13fbbec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/kubelet/container/container_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func CreateContainer(config api.Container, namespace string, pause_pid string, h
return nil
}

if len(volumes) > 0 {
if len(volumes) > 0 && volumes[0].PersistentVolumeClaim.ClaimName != "" {

URL := apiconfig.GetUrlPrefix() + apiconfig.PersistentVolumeClaimURL
URL = strings.Replace(URL, apiconfig.NamespacePlaceholder, "default", -1)
Expand Down
6 changes: 3 additions & 3 deletions yaml/dns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ paths:
serviceNamespace: default
serviceName: test-service1
servicePort: 8888
- path: /nginx
- path: /counter
serviceNamespace: default
serviceName: nginx-service
servicePort: 80
serviceName: hpa-service
servicePort: 12345

0 comments on commit 13fbbec

Please sign in to comment.