From e06383da6f0512df79701eae4de1ca132e8db0c7 Mon Sep 17 00:00:00 2001 From: Steve White Date: Thu, 1 Dec 2022 16:30:38 -0600 Subject: [PATCH] took out traefik stuff --- mt-cert.yaml | 13 ------------- mt-ing-rt.yaml | 12 ------------ mt-ingress.yaml | 6 ------ mydeploy.yaml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 46 insertions(+), 31 deletions(-) delete mode 100644 mt-cert.yaml delete mode 100644 mt-ing-rt.yaml create mode 100644 mydeploy.yaml diff --git a/mt-cert.yaml b/mt-cert.yaml deleted file mode 100644 index fb44600..0000000 --- a/mt-cert.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: mt.r8z.us - namespace: default -spec: - secretName: mt.r8z.us-tls - issuerRef: - name: letsencrypt - kind: ClusterIssuer - commonName: mt.r8z.us - dnsNames: - - mt.r8z.us diff --git a/mt-ing-rt.yaml b/mt-ing-rt.yaml deleted file mode 100644 index fcf871b..0000000 --- a/mt-ing-rt.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: traefik.containo.us/v1alpha1 -kind: IngressRoute -metadata: - name: mt-ing-rt - namespace: default -spec: - routes: - - kind: Rule - match: Host(`mt.r8z.us`) && (PathPrefix(`/`) - services: - - kind: Service - name: mt-svc diff --git a/mt-ingress.yaml b/mt-ingress.yaml index 8d19be6..908977e 100644 --- a/mt-ingress.yaml +++ b/mt-ingress.yaml @@ -1,8 +1,6 @@ apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - annotations: - cert-manager.io/cluster-issuer: letsencrypt name: mt-ingress namespace: default spec: @@ -17,7 +15,3 @@ spec: number: 80 path: / pathType: Prefix - tls: - - hosts: - - mt.r8z.us - secretName: mt.r8z.us-tls diff --git a/mydeploy.yaml b/mydeploy.yaml new file mode 100644 index 0000000..370aa83 --- /dev/null +++ b/mydeploy.yaml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + annotations: + deployment.kubernetes.io/revision: "1" + labels: + app: mytool + name: mytool + namespace: default +spec: + progressDeadlineSeconds: 600 + replicas: 2 + revisionHistoryLimit: 10 + selector: + matchLabels: + app: mytool + strategy: + rollingUpdate: + maxSurge: 25% + maxUnavailable: 25% + type: RollingUpdate + template: + metadata: + annotations: + labels: + app: mytool + spec: + containers: + - image: wbitt/network-multitool + imagePullPolicy: IfNotPresent + name: network-multitool + resources: {} + terminationMessagePath: /dev/termination-log + terminationMessagePolicy: File + dnsPolicy: None + dnsConfig: + nameservers: + - 10.96.0.10 + searches: + - mttool.svc.cluster.local + - svc.cluster.local + - cluster.local + restartPolicy: Always + schedulerName: default-scheduler + securityContext: {} + terminationGracePeriodSeconds: 30