APISIX Ingress 高级使用之 Url Rewrite

复制# nexus.yaml  apiVersion: apps/v1  kind: Deployment  metadata:    name: nexus    labels:      app: nexus  spec:    selector:      matchLabels:        app: nexus    template:      metadata:        labels:          app: nexus      spec:        containers:        - image: cnych/nexus:3.20.1          imagePullPolicy: IfNotPresent          name: nexus          ports:          - containerPort: 8081  --- apiVersion: v1  kind: Service  metadata:    labels:      app: nexus    name: nexus  spec:    ports:    - name: nexusport      port: 8081      targetPort: 8081    selector:      app: nexus  --- apiVersion: apisix.apache.org/v2beta2  kind: ApisixRoute  metadata:    name: nexus    namespace: default spec:    http:      - name: root        match:          hosts:            - ops.qikqiak.com          paths:            - "/*"       backends:        - serviceName: nexus          servicePort: 8081  1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.

阅读剩余
THE END