Last active
May 28, 2022 04:06
-
-
Save sitle/e2f745cc6362612d857072201cdf9c70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: test2 | |
labels: | |
name: test2 | |
istio-injection: enabled | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx | |
namespace: test2 | |
labels: | |
app: nginx | |
version: 0.1.0 | |
spec: | |
selector: | |
matchLabels: | |
app: nginx | |
replicas: 4 | |
strategy: | |
rollingUpdate: | |
maxSurge: 25% | |
maxUnavailable: 25% | |
type: RollingUpdate | |
template: | |
metadata: | |
labels: | |
app: nginx | |
version: 0.1.0 | |
spec: | |
containers: | |
- name: nginx | |
image: nginx:latest | |
resources: | |
requests: | |
cpu: 100m | |
memory: 100Mi | |
limits: | |
cpu: 100m | |
memory: 100Mi | |
ports: | |
- containerPort: 80 | |
name: http-nginx | |
restartPolicy: Always | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: nginx-svc | |
namespace: test2 | |
spec: | |
selector: | |
app: nginx | |
type: ClusterIP | |
sessionAffinity: ClientIP | |
sessionAffinityConfig: | |
clientIP: | |
timeoutSeconds: 10800 | |
ports: | |
- name: http-nginx | |
protocol: TCP | |
port: 80 | |
targetPort: 80 | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: test2-virtualservice | |
namespace: test2 | |
spec: | |
hosts: | |
- "test2.gouv.pf" | |
gateways: | |
- istio-system/http-gateway | |
http: | |
- match: | |
- uri: | |
prefix: / | |
route: | |
- destination: | |
port: | |
number: 80 | |
host: nginx-svc.test2.svc.cluster.local |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment