Marco-Zheng commented on issue #423:
URL:
https://github.com/apache/apisix-ingress-controller/issues/423#issuecomment-835224534
> @Marco-Zheng You can pass options to helm.
>
> ```
> helm install apisix-ingress-controller ....
> --set config.kubernetes.ingressVersion=networking/v1beta1
> ```
Here is the full k8s resource file
```
apiVersion: v1
kind: Pod
metadata:
annotations:
checksum/config:
6e32bfa01c440f5d4d34f1094abc6e7fbcd1984f2deca1a877a90cba9e15c96d
tke.cloud.tencent.com/networks-status: |-
[{
"name": "tke-bridge",
"ips": [
"172.20.9.196"
],
"default": true,
"dns": {}
}]
creationTimestamp: "2021-05-08T08:09:34Z"
generateName: apisix-ingress-controller-7fd57594c7-
labels:
app.kubernetes.io/instance: apisix-ingress-controller
app.kubernetes.io/name: apisix-ingress-controller
pod-template-hash: 7fd57594c7
name: apisix-ingress-controller-7fd57594c7-4jkld
namespace: ingress-apisix
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: ReplicaSet
name: apisix-ingress-controller-7fd57594c7
uid: 0881ce5e-843a-474b-bb2b-d526200c5056
resourceVersion: "7545642640"
selfLink:
/api/v1/namespaces/ingress-apisix/pods/apisix-ingress-controller-7fd57594c7-4jkld
uid: ae110355-7b70-48e0-ba6e-f976559c6666
spec:
containers:
- command:
- /ingress-apisix/apisix-ingress-controller
- ingress
- --config-path
- /ingress-apisix/conf/config.yaml
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
image: apache/apisix-ingress-controller:0.5.0
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 8080
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: apisix-ingress-controller
ports:
- containerPort: 8080
name: http
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 8080
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /ingress-apisix/conf
name: configuration
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: apisix-ingress-controller-token-lflw7
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: 192.168.52.10
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: apisix-ingress-controller
serviceAccountName: apisix-ingress-controller
terminationGracePeriodSeconds: 30
volumes:
- configMap:
defaultMode: 420
items:
- key: config.yaml
path: config.yaml
name: apisix-ingress-controller-configmap
name: configuration
- name: apisix-ingress-controller-token-lflw7
secret:
defaultMode: 420
secretName: apisix-ingress-controller-token-lflw7
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2021-05-08T08:09:34Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2021-05-08T08:09:47Z"
status: "True"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2021-05-08T08:09:47Z"
status: "True"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2021-05-08T08:09:34Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID:
docker://ec5f5d9ad5957943214485c3f2405e2825c417ae35d8e25b1e056b9b04cbbd03
image: apache/apisix-ingress-controller:0.5.0
imageID:
docker-pullable://apache/apisix-ingress-controller@sha256:f67259591782661714444c85150b59db534de908312d4f4ededd922557451602
lastState: {}
name: apisix-ingress-controller
ready: true
restartCount: 0
started: true
state:
running:
startedAt: "2021-05-08T08:09:40Z"
hostIP: 192.168.52.10
phase: Running
podIP: 172.20.9.196
podIPs:
- ip: 172.20.9.196
qosClass: BestEffort
startTime: "2021-05-08T08:09:34Z"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]