Documentation ¶
Index ¶
Constants ¶
View Source
const ( HostAppRoot = "app-root" HostAuthTLSErrorPage = "auth-tls-error-page" HostAuthTLSSecret = "auth-tls-secret" HostAuthTLSStrict = "auth-tls-strict" HostAuthTLSVerifyClient = "auth-tls-verify-client" HostCertSigner = "cert-signer" HostServerAlias = "server-alias" HostServerAliasRegex = "server-alias-regex" HostSSLPassthrough = "ssl-passthrough" HostSSLPassthroughHTTPPort = "ssl-passthrough-http-port" HostTimeoutClient = "timeout-client" HostTimeoutClientFin = "timeout-client-fin" HostVarNamespace = "var-namespace" )
Host Annotations
View Source
const ( BackAffinity = "affinity" BackAgentCheckAddr = "agent-check-addr" BackAgentCheckInterval = "agent-check-interval" BackAgentCheckPort = "agent-check-port" BackAgentCheckSend = "agent-check-send" BackAuthRealm = "auth-realm" BackAuthSecret = "auth-secret" BackAuthTLSCertHeader = "auth-tls-cert-header" BackAuthType = "auth-type" BackBackendCheckInterval = "backend-check-interval" BackBackendProtocol = "backend-protocol" BackBackendServerNaming = "backend-server-naming" BackBackendServerSlotsInc = "backend-server-slots-increment" BackBalanceAlgorithm = "balance-algorithm" BackBlueGreenBalance = "blue-green-balance" BackBlueGreenCookie = "blue-green-cookie" BackBlueGreenDeploy = "blue-green-deploy" BackBlueGreenHeader = "blue-green-header" BackBlueGreenMode = "blue-green-mode" BackConfigBackend = "config-backend" BackCorsAllowCredentials = "cors-allow-credentials" BackCorsAllowHeaders = "cors-allow-headers" BackCorsAllowMethods = "cors-allow-methods" BackCorsAllowOrigin = "cors-allow-origin" BackCorsEnable = "cors-enable" BackCorsExposeHeaders = "cors-expose-headers" BackCorsMaxAge = "cors-max-age" BackDynamicScaling = "dynamic-scaling" BackHealthCheckAddr = "health-check-addr" BackHealthCheckFallCount = "health-check-fall-count" BackHealthCheckInterval = "health-check-interval" BackHealthCheckPort = "health-check-port" BackHealthCheckRiseCount = "health-check-rise-count" BackHealthCheckURI = "health-check-uri" BackHSTS = "hsts" BackHSTSIncludeSubdomains = "hsts-include-subdomains" BackHSTSMaxAge = "hsts-max-age" BackHSTSPreload = "hsts-preload" BackInitialWeight = "initial-weight" BackLimitConnections = "limit-connections" BackLimitRPS = "limit-rps" BackLimitWhitelist = "limit-whitelist" BackMaxconnServer = "maxconn-server" BackMaxQueueServer = "maxqueue-server" BackOAuth = "oauth" BackOAuthHeaders = "oauth-headers" BackOAuthURIPrefix = "oauth-uri-prefix" BackProxyBodySize = "proxy-body-size" BackProxyProtocol = "proxy-protocol" BackRewriteTarget = "rewrite-target" BackSlotsMinFree = "slots-min-free" BackSecureBackends = "secure-backends" BackSecureCrtSecret = "secure-crt-secret" BackSecureVerifyCASecret = "secure-verify-ca-secret" BackServiceUpstream = "service-upstream" BackSessionCookieDynamic = "session-cookie-dynamic" BackSessionCookieName = "session-cookie-name" BackSessionCookieStrategy = "session-cookie-strategy" BackSSLCipherSuitesBackend = "ssl-cipher-suites-backend" BackSSLCiphersBackend = "ssl-ciphers-backend" BackSSLFingerprintLower = "ssl-fingerprint-lower" BackSSLOptionsBackend = "ssl-options-backend" BackSSLRedirect = "ssl-redirect" BackTimeoutConnect = "timeout-connect" BackTimeoutHTTPRequest = "timeout-http-request" BackTimeoutKeepAlive = "timeout-keep-alive" BackTimeoutQueue = "timeout-queue" BackTimeoutServer = "timeout-server" BackTimeoutServerFin = "timeout-server-fin" BackTimeoutTunnel = "timeout-tunnel" BackUseResolver = "use-resolver" BackWAF = "waf" BackWAFMode = "waf-mode" BackWhitelistSourceRange = "whitelist-source-range" )
Backend Annotations
View Source
const ( GlobalAcmeEmails = "acme-emails" GlobalAcmeEndpoint = "acme-endpoint" GlobalAcmeExpiring = "acme-expiring" GlobalAcmeTermsAgreed = "acme-terms-agreed" GlobalBindFrontingProxy = "bind-fronting-proxy" GlobalBindHTTP = "bind-http" GlobalBindHTTPS = "bind-https" GlobalBindIPAddrHealthz = "bind-ip-addr-healthz" GlobalBindIPAddrHTTP = "bind-ip-addr-http" GlobalBindIPAddrPrometheus = "bind-ip-addr-prometheus" GlobalBindIPAddrStats = "bind-ip-addr-stats" GlobalBindIPAddrTCP = "bind-ip-addr-tcp" GlobalConfigDefaults = "config-defaults" GlobalConfigFrontend = "config-frontend" GlobalConfigGlobal = "config-global" GlobalCookieKey = "cookie-key" GlobalCpuMap = "cpu-map" GlobalDNSAcceptedPayloadSize = "dns-accepted-payload-size" GlobalDNSClusterDomain = "dns-cluster-domain" GlobalDNSHoldObsolete = "dns-hold-obsolete" GlobalDNSHoldValid = "dns-hold-valid" GlobalDNSResolvers = "dns-resolvers" GlobalDNSTimeoutRetry = "dns-timeout-retry" GlobalDrainSupport = "drain-support" GlobalDrainSupportRedispatch = "drain-support-redispatch" GlobalForwardfor = "forwardfor" GlobalFrontingProxyPort = "fronting-proxy-port" GlobalHealthzPort = "healthz-port" GlobalHTTPLogFormat = "http-log-format" GlobalHTTPPort = "http-port" GlobalHTTPSLogFormat = "https-log-format" GlobalHTTPSPort = "https-port" GlobalHTTPStoHTTPPort = "https-to-http-port" GlobalLoadServerState = "load-server-state" GlobalMaxConnections = "max-connections" GlobalModsecurityEndpoints = "modsecurity-endpoints" GlobalModsecurityTimeoutConnect = "modsecurity-timeout-connect" GlobalModsecurityTimeoutHello = "modsecurity-timeout-hello" GlobalModsecurityTimeoutIdle = "modsecurity-timeout-idle" GlobalModsecurityTimeoutProcessing = "modsecurity-timeout-processing" GlobalModsecurityTimeoutServer = "modsecurity-timeout-server" GlobalNbprocBalance = "nbproc-balance" GlobalNbprocSSL = "nbproc-ssl" GlobalNbthread = "nbthread" GlobalNoTLSRedirectLocations = "no-tls-redirect-locations" GlobalPrometheusPort = "prometheus-port" GlobalSSLCiphers = "ssl-ciphers" GlobalSSLCipherSuites = "ssl-cipher-suites" GlobalSSLDHDefaultMaxSize = "ssl-dh-default-max-size" GlobalSSLDHParam = "ssl-dh-param" GlobalSSLEngine = "ssl-engine" GlobalSSLHeadersPrefix = "ssl-headers-prefix" GlobalSSLModeAsync = "ssl-mode-async" GlobalSSLOptions = "ssl-options" GlobalSSLRedirectCode = "ssl-redirect-code" GlobalStatsAuth = "stats-auth" GlobalStatsPort = "stats-port" GlobalStatsProxyProtocol = "stats-proxy-protocol" GlobalStatsSSLCert = "stats-ssl-cert" GlobalStrictHost = "strict-host" GlobalSyslogEndpoint = "syslog-endpoint" GlobalSyslogFormat = "syslog-format" GlobalSyslogLength = "syslog-length" GlobalSyslogTag = "syslog-tag" GlobalTCPLogFormat = "tcp-log-format" GlobalTimeoutStop = "timeout-stop" GlobalTLSALPN = "tls-alpn" GlobalUseChroot = "use-chroot" GlobalUseCpuMap = "use-cpu-map" GlobalUseForwardedProto = "use-forwarded-proto" GlobalUseHAProxyUser = "use-haproxy-user" GlobalUseHTX = "use-htx" GlobalUseProxyProtocol = "use-proxy-protocol" )
Global config
View Source
const (
ExtraTLSAcme = "kubernetes.io/tls-acme"
)
Extra Annotations
Variables ¶
View Source
var ( // AnnHost ... AnnHost = map[string]struct{}{ HostAppRoot: {}, HostAuthTLSErrorPage: {}, HostAuthTLSSecret: {}, HostAuthTLSStrict: {}, HostAuthTLSVerifyClient: {}, HostCertSigner: {}, HostServerAlias: {}, HostServerAliasRegex: {}, HostSSLPassthrough: {}, HostSSLPassthroughHTTPPort: {}, HostTimeoutClient: {}, HostTimeoutClientFin: {}, HostVarNamespace: {}, } )
Functions ¶
This section is empty.
Types ¶
type ConverterOptions ¶
type ConverterOptions struct { Logger types.Logger Cache convtypes.Cache DefaultConfig func() map[string]string DefaultBackend string DefaultCrtSecret string FakeCrtFile convtypes.CrtFile FakeCAFile convtypes.CrtFile AnnotationPrefix string AcmeTrackTLSAnn bool }
ConverterOptions ...
Click to show internal directories.
Click to hide internal directories.