Skip to content

Instantly share code, notes, and snippets.

View Miciah's full-sized avatar

Miciah Dashiel Butler Masters Miciah

  • Red Hat, Inc.
  • North Carolina
View GitHub Profile
@Miciah
Miciah / ingress-diagrams.png
Last active May 14, 2020 02:10
ingress diagrams
ingress-diagrams.png
# This yaml file defines a controller that ensures that all routes have the
# "haproxy.router.openshift.io/disable_cookies" annotation set.
#
# Users may create routes with or without the annotation and may update the
# annotation on existing routes. However, if the user creates a route without
# the annotation or updates a route to delete the annotation, the controller
# will add the annotation with the value "true".
#
# Deploy this controller using the following command:
#
package main
import (
"bytes"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/x509"
"encoding/asn1"
"encoding/pem"
"fmt"
% openshift-install create manifests --dir=./clusters/gcp-mmasters-6
INFO Consuming "Install Config" from target directory
openshift-install create manifests --dir=./clusters/gcp-mmasters-6 1.78s user 0.06s system 18% cpu 9.806 total
% cat > ./clusters/gcp-mmasters-6/manifests/ingress-controller-01-crd.yaml <<EOF
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: ingresscontrollers.operator.openshift.io
spec:
% openshift-install create manifests --dir=./clusters/gcp-mmasters-5
INFO Consuming "Install Config" from target directory
openshift-install create manifests 1.73s user 0.08s system 60% cpu 2.972 total
% cat > ./clusters/gcp-mmasters-5/manifests/ingress-controller-01-crd.yaml <<EOF
heredoc> ---
heredoc> apiVersion: apiextensions.k8s.io/v1beta1
heredoc> kind: CustomResourceDefinition
heredoc> metadata:
heredoc> name: ingresscontrollers.operator.openshift.io
heredoc> spec:
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: ingresscontrollers.operator.openshift.io
spec:
group: operator.openshift.io
names:
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: dnsrecords.ingress.operator.openshift.io
spec:
group: ingress.operator.openshift.io
names:
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: ingresscontrollers.operator.openshift.io
spec:
group: operator.openshift.io
names:
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: ingresscontrollers.operator.openshift.io
spec:
group: operator.openshift.io
names:
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: ingresscontrollers.operator.openshift.io
spec:
group: operator.openshift.io
names: