Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Affinity and NodeSelector to Redis #299

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lmiccini
Copy link
Contributor

[zuul@controller-0 ~]$ oc get redis redis -o yaml                
apiVersion: redis.openstack.org/v1beta1
kind: Redis
metadata:                  
  annotations:                                       
    kubectl.kubernetes.io/last-applied-configuration: |                                                                                                                                                                                                                                                                                         
      {"apiVersion":"redis.openstack.org/v1beta1","kind":"Redis","metadata":{"annotations":{},"name":"redis","namespace":"openstack"},"spec":{"nodeSelector":{"foo":"bar"},"replicas":1}
  creationTimestamp: "2024-10-25T06:29:51Z"
  generation: 1                
  name: redis                                            
  namespace: openstack                                                                                                                                                                                                                                                                                                                          
  resourceVersion: "593470"                   
  uid: a6e4359d-a4f5-45d0-a09c-ff6519848986
spec:                              
  containerImage: quay.io/podified-antelope-centos9/openstack-redis@sha256:60d24dca380d2b925b13c1fedd2b28871717874755256c7e149164ec177947d3
  nodeSelector:         
    foo: bar                                      
  replicas: 1
  tls: {}
[zuul@controller-0 ~]$ oc get nodes worker-2 -o json |jq .metadata.labels.foo
"bar"
[zuul@controller-0 ~]$ oc get pods -o wide |grep redis
redis-redis-0                                                     2/2     Running     0          5m53s   192.168.48.67    worker-2   <none>           <none>

@openshift-ci openshift-ci bot requested review from stuggi and viroel October 25, 2024 06:36
Copy link
Contributor

openshift-ci bot commented Oct 25, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: lmiccini
Once this PR has been reviewed and has the lgtm label, please assign dprince for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant