Untitled

 avatar
unknown
plain_text
4 years ago
3.3 kB
8
Indexable
└──╼ $kubectl get all,certificate,ing -n awx
NAME                      READY   STATUS    RESTARTS   AGE
pod/web-9bbd7b488-z6ckz   1/1     Running   0          12s

NAME                  READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/web   1/1     1            1           13s

NAME                            DESIRED   CURRENT   READY   AGE
replicaset.apps/web-9bbd7b488   1         1         1       13s

NAME                                    READY   SECRET      AGE
certificate.cert-manager.io/hello-tls           hello-tls   12s

NAME                               HOSTS             ADDRESS   PORTS     AGE
ingress.extensions/hello-ingress   hello.redacted.sh             80, 443   13s
┌─[shad@luz:10.10.0.202]-[~/awx]
└──╼ $cat helloworld.yml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: web
  namespace: awx
spec:
  selector:
    matchLabels:
      run: web
  template:
    metadata:
      labels:
        run: web
    spec:
      containers:
      - image: gcr.io/google-samples/hello-app:1.0
        imagePullPolicy: IfNotPresent
        name: web
        ports:
        - containerPort: 8080
          protocol: TCP
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: hello-ingress
  namespace: awx
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    kubernetes.io/ingress.class: "nginx"
spec:
  rules:
    - host: hello.redacted.sh
      http:
        paths:
          - path: /
            backend:
              serviceName: hello-service
              servicePort: 80
  tls:
    - hosts:
        - hello.redacted.sh
      secretName: hello-tls




######

│ E0608 13:22:59.349993       1 controller.go:156] ingress 'awx/hello-ingress' in work queue no longer exists                                                                                                                                 │
│ E0608 13:24:54.718276       1 controller.go:158] cert-manager/controller/ingress-shim "msg"="re-queuing item due to error processing" "error"="certificates.cert-manager.io \"hello-tls\" already exists" "key"="awx/hello-ingress"         │
│ E0608 13:24:59.741427       1 controller.go:158] cert-manager/controller/ingress-shim "msg"="re-queuing item due to error processing" "error"="certificates.cert-manager.io \"hello-tls\" already exists" "key"="awx/hello-ingress"         │
│ E0608 13:25:09.776156       1 controller.go:158] cert-manager/controller/ingress-shim "msg"="re-queuing item due to error processing" "error"="certificates.cert-manager.io \"hello-tls\" already exists" "key"="awx/hello-ingress"         │
│ E0608 13:25:30.304949       1 controller.go:158] cert-manager/controller/ingress-shim "msg"="re-queuing item due to error processing" "error"="certificates.cert-manager.io \"hello-tls\" already exists" "key"="awx/hello-ingress"         │
│ E0608 13:26:10.332258       1 controller.go:158] cert-manager/controller/ingress-shim "msg"="re-queuing item due to error processing" "error"="certificates.cert-manager.io \"hello-tls\" already exists" "key"="awx/hello-ingress"         │
│ E0608 13:27:30.363135       1 controller.go:158] cert-manager/controller/ingress-shim "msg"="re-queuing item due to error processing" "error"="certificates.cert-manager.io \"hello-tls\" already exists" "key"="awx/hello-ingress"     
Editor is loading...