Is this a BUG REPORT or FEATURE REQUEST?:
Uncomment only one, leave it on its own line:
/kind bug
/kind feature
What happened:
kubectl version
[root@ib17b07 ~]# kubectl version
Client Version: version.Info{Major:"", Minor:"", GitVersion:"v1.9.0+icp-ee", GitCommit:"63bab888f1dbf8e3266be14305e84d9ea539bffb", GitTreeState:"clean", BuildDate:"2018-01-08T14:29:32Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"", Minor:"", GitVersion:"v1.9.0+icp-ee", GitCommit:"63bab888f1dbf8e3266be14305e84d9ea539bffb", GitTreeState:"clean", BuildDate:"2018-01-08T14:29:32Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Deployment file with apps/v1 as apiVersion.
[root@ib17b07 ~]# cat nginx.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: test-nginx
name: test-nginx
namespace: default
spec:
replicas: 1
selector:
matchLabels:
run: test-nginx
template:
metadata:
labels:
run: test-nginx
spec:
containers:
- image: nginx:1.8.1
imagePullPolicy: IfNotPresent
name: test-nginx
ports:
- containerPort: 80
protocol: TCP
Create the deployment
kubectl apply -f ./nginx.yaml
After deployment finished, check the deployment yaml output, it was still using
[root@ib17b07 ~]# kubectl get deploy -oyaml, the apiVersion was still `extensions/v1beta1`.
apiVersion: v1
items:
- apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"run":"test-nginx"},"name":"test-nginx","namespace":"default"},"spec":{"replicas":1,"selector":{"matchLabels":{"run":"test-nginx"}},"template":{"metadata":{"labels":{"run":"test-nginx"}},"spec":{"containers":[{"image":"nginx:1.8.1","imagePullPolicy":"IfNotPresent","name":"test-nginx","ports":[{"containerPort":80,"protocol":"TCP"}]}]}}}}
creationTimestamp: 2018-01-11T04:15:29Z
generation: 1
labels:
run: test-nginx
name: test-nginx
namespace: default
resourceVersion: "97558"
selfLink: /apis/extensions/v1beta1/namespaces/default/deployments/test-nginx
uid: 0eb24b62-f686-11e7-9b10-3440b5c70c60
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
run: test-nginx
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
run: test-nginx
spec:
containers:
- image: nginx:1.8.1
imagePullPolicy: IfNotPresent
name: test-nginx
ports:
- containerPort: 80
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
conditions:
- lastTransitionTime: 2018-01-11T04:15:32Z
lastUpdateTime: 2018-01-11T04:15:32Z
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: 2018-01-11T04:15:29Z
lastUpdateTime: 2018-01-11T04:15:32Z
message: ReplicaSet "test-nginx-647c4777c8" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 1
readyReplicas: 1
replicas: 1
updatedReplicas: 1
kind: List
metadata:
resourceVersion: ""
selfLink: ""
/sig api-machinery
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
- Kubernetes version (use
kubectl version):
- Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a):
- Install tools:
- Others:
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
kubectl version
Deployment file with
apps/v1as apiVersion.Create the deployment
After deployment finished, check the deployment yaml output, it was still using
/sig api-machinery
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version):uname -a):