Deploy GitHub Pages
This commit is contained in:
parent
80af1e5440
commit
23b701319a
5 changed files with 75 additions and 2 deletions
70
examples/chashsubset/deployment.yaml
Normal file
70
examples/chashsubset/deployment.yaml
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-deployment
|
||||
labels:
|
||||
app: nginxhello
|
||||
spec:
|
||||
replicas: 10
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginxhello
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginxhello
|
||||
spec:
|
||||
containers:
|
||||
- name: nginxhello
|
||||
image: gcr.io/kubernetes-e2e-test-images/echoserver:2.2
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: NODE_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
- name: POD_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
- name: POD_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: POD_IP
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: status.podIP
|
||||
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: nginxhello
|
||||
labels:
|
||||
app: nginxhello
|
||||
spec:
|
||||
selector:
|
||||
app: nginxhello
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/upstream-hash-by: "$arg_predictorid"
|
||||
nginx.ingress.kubernetes.io/upstream-hash-by-subset: "true"
|
||||
nginx.ingress.kubernetes.io/upstream-hash-by-subset-size: "3"
|
||||
name: nginxhello-ingress
|
||||
namespace: default
|
||||
spec:
|
||||
backend:
|
||||
serviceName: nginxhello
|
||||
servicePort: 80
|
||||
|
||||
|
|
@ -1242,7 +1242,7 @@ and that you have an ingress controller <a href="../../deploy">running</a> in yo
|
|||
<h3 id="rewrite-target">Rewrite Target<a class="headerlink" href="#rewrite-target" title="Permanent link">¶</a></h3>
|
||||
<div class="admonition attention">
|
||||
<p class="admonition-title">Attention</p>
|
||||
<p>Starting in Version 0.2.2, ingress definitions using the annotation <code class="codehilite">nginx.ingress.kubernetes.io/rewrite-target</code> are not backwards compatible with previous versions. In Version 0.2.2 and beyond, any substrings within the request URI that need to be passed to the rewritten path must explicitly be defined in a <a href="https://www.regular-expressions.info/refcapture.html">capture group</a>.</p>
|
||||
<p>Starting in Version 0.22.0, ingress definitions using the annotation <code class="codehilite">nginx.ingress.kubernetes.io/rewrite-target</code> are not backwards compatible with previous versions. In Version 0.22.0 and beyond, any substrings within the request URI that need to be passed to the rewritten path must explicitly be defined in a <a href="https://www.regular-expressions.info/refcapture.html">capture group</a>.</p>
|
||||
</div>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue