Skip to content

Commit

Permalink
fix: added resolv.conf mount to dapr container
Browse files Browse the repository at this point in the history
  • Loading branch information
siredmar committed May 16, 2022
1 parent 934699e commit 1d66e22
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cue/traits/edge-network-participant-trait.cue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ template: {
secret:
secretName: context.appName+"."+context.name
},
{
name: "resolv",
hostPath:
path: "/etc/resolv.conf"
type: "File"
},
{
name: "dapr-components",
secret:
Expand Down Expand Up @@ -131,6 +137,11 @@ template: {
"name": "dapr-components",
"mountPath": "/components",
"readOnly": true
},
{
"name": "resolv",
"mountPath": "/etc/resolv.conf",
"readOnly": true
}
]
}
Expand Down
10 changes: 10 additions & 0 deletions manifests/vela-caps/traits/edge-network-participant-trait.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ spec:
name: "creds"
secret: secretName: context.appName + "." + context.name
},
{
name: "resolv"
hostPath: path: "/etc/resolv.conf"
type: "File"
},
{
name: "dapr-components"
secret: secretName: context.appName + "." + context.name + ".dapr"
Expand Down Expand Up @@ -124,6 +129,11 @@ spec:
mountPath: "/components"
readOnly: true
},
{
name: "resolv"
mountPath: "/etc/resolv.conf"
readOnly: true
},
]
},
]
Expand Down

0 comments on commit 1d66e22

Please sign in to comment.