forked from kosmos-io/kosmos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: kosmosctl adds support for deploying CoreDNS
Signed-off-by: wangyizhi1 <[email protected]>
- Loading branch information
1 parent
cc6ec97
commit c9a7f8c
Showing
9 changed files
with
504 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package manifest | ||
|
||
const ( | ||
CorednsCorefile = ` | ||
apiVersion: v1 | ||
data: | ||
Corefile: | | ||
.:53 { | ||
errors | ||
health { | ||
lameduck 5s | ||
} | ||
ready | ||
kubernetes kosmos.local cluster.local in-addr.arpa ip6.arpa { | ||
pods insecure | ||
ttl 30 | ||
} | ||
hosts /etc/add-hosts/customer-hosts . { | ||
fallthrough kosmos.local cluster.local in-addr.arpa ip6.arpa | ||
} | ||
prometheus :9153 | ||
cache 30 | ||
reload | ||
loadbalance | ||
} | ||
kind: ConfigMap | ||
metadata: | ||
name: coredns | ||
namespace: {{ .Namespace }} | ||
` | ||
|
||
CorednsCustomerHosts = ` | ||
apiVersion: v1 | ||
data: | ||
customer-hosts: | | ||
#customer-hosts | ||
#10.10.10.10 myhost1 | ||
kind: ConfigMap | ||
metadata: | ||
name: coredns-customer-hosts | ||
namespace: {{ .Namespace }} | ||
` | ||
) | ||
|
||
type ConfigmapReplace struct { | ||
Namespace string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.