deployment


Issue with Pod selection using selector.matchExpressions in Kubernetes Deployment


I've got a problem with Deployments which uses both matchLabels and matchExpressions in the spec.selector. like:
...
spec:
replicas: 3
selector:
matchLabels:
run: myapp
matchExpressions:
- {key: exclude, operator: NotIn, values: [true]}
...
Now, I launch this deployment with say 3 replica's. Then I go to one pod and add a label: exclude=true.
What I expect to happen
The pod to which I added the label exclude=true is taken out of the Deployment & ReplicaSet and a new pod is spun up, so the Deployment/ReplicaSet still have 3 pods (showing 3/3 in the dashboard)
What I see happening
A new pod is spun up, but the pod to which I added the label is NOT taken out of the Deployment/ReplicaSet: those now show 4/3 in the dashboard
questions
Is this expected behavior or a bug? Am running the latest MiniKube (on Windows).
If I update the run label to something else but 'myapp' on the pod to which I added label exclude=true, then the pod is taken out of the Deployment/ReplicaSet (dashboard shows 3/3)
Any thoughts?
Turns out the selectors work properly, the issue is just that Kubernetes Dashboard/WebUI reports the wrong numbers.
Filed an issue with Kubernetes Dashboard now: https://github.com/kubernetes/dashboard/issues/1944

Related Links

Complex webapp deployment script: Shell too limited?
JAX-WS Deployement error + LocatableWebServiceException: class not found in runtime descriptor
Staging instance on Heroku
Replacing hand-held's custom dashboard with my Windows CE application
Manual deployment from CruiseControl
BlackBerry HelloWorld deploys in Eclipse under 8130 simulator but not 950
Axis2 client error [duplicate]
tutorial on generating MSI [closed]
How to apply database updates after deployment?
How do I deploy/publish a Web Application with CruiseControl.NET & MSBuild?
ClickOnce: DeploymentDownloadException: The operation has timed out
Click Once Deploy/Setup Project
Grails auto reload functionality in run-app on a custom environment
How can I make Single Installer for my Different version of Office Addin
deploy tools: get a list of actions the tool will execute without executing the deploy script
Deployment issues on Tomcat

Categories

HOME
google-chrome-extension
bluetooth
deployment
vmware
jsp-tags
amazon-ecs
jgroups
win32gui
icloud
elasticsearch-hadoop
session-variables
numeral.js
qt-creator
event-handling
flask-wtforms
netflix
clojurescript
ef-migrations
pugjs
textfield
emulator
plunker
csrf-protection
tapestry
pass-by-reference
spark-jobserver
linkerd
neo4j-spatial
http-status-code-503
semantic-versioning
data-manipulation
titanium-mobile
siesta-swift
phpfreechat
wixsharp
file-format
dosbox
libvpx
abstract-class
objectlistview
webdriver-manager
trim
gulp-sourcemaps
google-closure
acoustics
websphere-mq-fte
scrollable
nstextview
composite-key
magma
mako
color-picker
google-feed-api
angular-cache
httplistener
slicknav
file-writing
merge-conflict-resolution
qpid
holder.js
make-install
pickadate
sailfish-os
iiviewdeckcontroller
census
angular-local-storage
gui-test-framework
qcodo
gulp-less
eol
article
p4java
marmalade
mysql-error-1062
srs
industrial
aqtime
inbox
jplaton
buster.js
html4
selected
angularjs-controller
typoscript2
gil
venn-diagram
manchester-syntax
ticoredatasync
gwt-ext
doh
tomcat-valve
disclosure
sortable-tables
sproutcore-2
database-management
brewmp
audio-capture
javap
windows-live-messenger

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App