-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom dns manifests needed to connect to infra
Signed-off-by: tssala23 <[email protected]>
- Loading branch information
Showing
5 changed files
with
93 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: dns-config | ||
namespace: custom-dns | ||
data: | ||
Corefile: | | ||
nerc-ocp-infra.rc.fas.harvard.edu:8053 { | ||
log stdout | ||
file /etc/coredns/nerc-ocp-infra.rc.fas.harvard.edu | ||
} | ||
nerc-ocp-infra.rc.fas.harvard.edu: | | ||
$TTL 1800 | ||
$ORIGIN nerc-ocp-infra.rc.fas.harvard.edu. | ||
@ IN SOA dns domains ( | ||
2020031101 ; serial | ||
300 ; refresh | ||
1800 ; retry | ||
14400 ; expire | ||
300 ) ; minimum | ||
api IN A 10.30.9.5 | ||
*.apps IN A 10.30.9.6 |
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,39 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: dns | ||
labels: | ||
app: dns | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: dns | ||
deployment: dns | ||
template: | ||
metadata: | ||
labels: | ||
app: dns | ||
deployment: dns | ||
spec: | ||
containers: | ||
- name: coredns-openshift | ||
image: quay.io/openshift/origin-coredns:4.16 | ||
command: ["/usr/bin/coredns"] | ||
args: ["-dns.port","8053","-conf","/etc/coredns/Corefile"] | ||
Check failure on line 23 in custom-dns/base/deployment.yaml GitHub Actions / run-linters / run-linters
Check failure on line 23 in custom-dns/base/deployment.yaml GitHub Actions / run-linters / run-linters
|
||
securityContext: | ||
allowPrivilegeEscalation: false | ||
seccompProfile: | ||
type: RuntimeDefault | ||
capabilities: | ||
drop: | ||
- ALL | ||
runAsNonRoot: true | ||
volumeMounts: | ||
- mountPath: /etc/coredns | ||
name: dns-config | ||
volumes: | ||
- configMap: | ||
defaultMode: 420 | ||
name: dns-config | ||
name: dns-config |
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,7 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- namespace.yaml | ||
- configmap.yaml | ||
- dsplyment.yaml | ||
- Service.yaml |
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,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: custom-dns |
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,19 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: dns | ||
name: dns | ||
spec: | ||
ports: | ||
- name: 8053-tcp | ||
port: 8053 | ||
protocol: TCP | ||
targetPort: 8053 | ||
- name: 8053-udp | ||
port: 8053 | ||
protocol: UDP | ||
targetPort: 8053 | ||
selector: | ||
app: dns | ||
deployment: dns |