{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/9216","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/9216/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/9216/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/9216/events","html_url":"https://github.com/openshift/origin/issues/9216","id":159097117,"number":9216,"title":"a new DeploymentConfig with replicas=1 creates a ReplicationController with replicas=0","user":{"login":"jstrachan","id":30140,"avatar_url":"https://avatars.githubusercontent.com/u/30140?v=3","gravatar_id":"","url":"https://api.github.com/users/jstrachan","html_url":"https://github.com/jstrachan","followers_url":"https://api.github.com/users/jstrachan/followers","following_url":"https://api.github.com/users/jstrachan/following{/other_user}","gists_url":"https://api.github.com/users/jstrachan/gists{/gist_id}","starred_url":"https://api.github.com/users/jstrachan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstrachan/subscriptions","organizations_url":"https://api.github.com/users/jstrachan/orgs","repos_url":"https://api.github.com/users/jstrachan/repos","events_url":"https://api.github.com/users/jstrachan/events{/privacy}","received_events_url":"https://api.github.com/users/jstrachan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/openshift/origin/labels/component/deployments","name":"component/deployments","color":"0052cc"},{"url":"https://api.github.com/repos/openshift/origin/labels/kind/question","name":"kind/question","color":"cc317c"},{"url":"https://api.github.com/repos/openshift/origin/labels/priority/P2","name":"priority/P2","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"kargakis","id":3900799,"avatar_url":"https://avatars.githubusercontent.com/u/3900799?v=3","gravatar_id":"","url":"https://api.github.com/users/kargakis","html_url":"https://github.com/kargakis","followers_url":"https://api.github.com/users/kargakis/followers","following_url":"https://api.github.com/users/kargakis/following{/other_user}","gists_url":"https://api.github.com/users/kargakis/gists{/gist_id}","starred_url":"https://api.github.com/users/kargakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kargakis/subscriptions","organizations_url":"https://api.github.com/users/kargakis/orgs","repos_url":"https://api.github.com/users/kargakis/repos","events_url":"https://api.github.com/users/kargakis/events{/privacy}","received_events_url":"https://api.github.com/users/kargakis/received_events","type":"User","site_admin":false},"milestone":null,"comments":8,"created_at":"2016-06-08T07:29:12Z","updated_at":"2016-06-08T13:03:17Z","closed_at":null,"body":"How do I create a DeploymentConfig with replicas=1 so that it actually creates a ReplicationController with replicas > 0? \r\n\r\nThis one had me confused for a while; I figured OpenShift was broken ;)\r\n\r\n##### Version\r\n```\r\n# oc version\r\noc v1.3.0-alpha.1\r\nkubernetes v1.3.0-alpha.1-331-g0522e63\r\n```\r\n##### Steps To Reproduce\r\nHere's the YAML I'm using to create a DC\r\n```\r\nkind: DeploymentConfig\r\napiVersion: v1\r\nmetadata:\r\n  name: funkything\r\n  namespace: default-staging\r\n  selfLink: /oapi/v1/namespaces/default-staging/deploymentconfigs/funkything\r\n  uid: d4f6f9f4-2d48-11e6-9cc4-080027b5c2f4\r\n  resourceVersion: '1616'\r\n  generation: 2\r\n  creationTimestamp: '2016-06-08T07:15:51Z'\r\n  labels:\r\n    group: io.fabric8.funktion.quickstart\r\n    project: funkything\r\n    provider: fabric8\r\n    version: 1.0.3\r\n  annotations:\r\n    fabric8.io/build-url: 'http://jenkins.vagrant.f8/job/funky1/3'\r\n    fabric8.io/git-branch: funky1-1.0.3\r\n    fabric8.io/git-commit: 317304e59ce4fcac045c0b47ed5613196e36748d\r\n    fabric8.io/git-url: >-\r\n      http://gogs.vagrant.f8/gogsadmin/funky1/commit/317304e59ce4fcac045c0b47ed5613196e36748d\r\n    fabric8.io/iconUrl: img/icons/funktion.png\r\nspec:\r\n  strategy:\r\n    type: Rolling\r\n    rollingParams:\r\n      updatePeriodSeconds: 1\r\n      intervalSeconds: 1\r\n      timeoutSeconds: 600\r\n      maxUnavailable: 25%\r\n      maxSurge: 25%\r\n    resources: {}\r\n  triggers:\r\n    - type: ConfigChange\r\n  replicas: 1\r\n  test: false\r\n  selector:\r\n    group: io.fabric8.funktion.quickstart\r\n    project: funkything\r\n    provider: fabric8\r\n  template:\r\n    metadata:\r\n      creationTimestamp: null\r\n      labels:\r\n        group: io.fabric8.funktion.quickstart\r\n        project: funkything\r\n        provider: fabric8\r\n        version: 1.0.3\r\n    spec:\r\n      containers:\r\n        - name: quickstart-funkything\r\n          image: 'quickstart/funkything:1.0.3'\r\n          ports:\r\n            - containerPort: 8080\r\n              protocol: TCP\r\n          env:\r\n            - name: KUBERNETES_NAMESPACE\r\n              valueFrom:\r\n                fieldRef:\r\n                  apiVersion: v1\r\n                  fieldPath: metadata.namespace\r\n          resources: {}\r\n          livenessProbe:\r\n            httpGet:\r\n              path: /health\r\n              port: 8081\r\n              scheme: HTTP\r\n            timeoutSeconds: 1\r\n            periodSeconds: 10\r\n            successThreshold: 1\r\n            failureThreshold: 3\r\n          readinessProbe:\r\n            httpGet:\r\n              path: /health\r\n              port: 8081\r\n              scheme: HTTP\r\n            timeoutSeconds: 1\r\n            periodSeconds: 10\r\n            successThreshold: 1\r\n            failureThreshold: 3\r\n          terminationMessagePath: /dev/termination-log\r\n          imagePullPolicy: IfNotPresent\r\n          securityContext:\r\n            privileged: false\r\n      restartPolicy: Always\r\n      terminationGracePeriodSeconds: 30\r\n      dnsPolicy: ClusterFirst\r\n      securityContext: {}\r\nstatus:\r\n  latestVersion: 1\r\n  details:\r\n    causes:\r\n      - type: ConfigChange\r\n  observedGeneration: 2\r\n```\r\n\r\n##### Current Result\r\n\r\nHere's the DC\r\n```\r\n$ oc get dc\r\nNAME         REVISION   REPLICAS   TRIGGERED BY\r\nfunkything   1          1          config\r\n$ oc get rc\r\nNAME           DESIRED   CURRENT   AGE\r\nfunkything-1   0         0         11m\r\n```\r\n##### Expected Result\r\n\r\n```\r\n$ oc get dc\r\nNAME         REVISION   REPLICAS   TRIGGERED BY\r\nfunkything   1          1          config\r\n$ oc get rc\r\nNAME           DESIRED   CURRENT   AGE\r\nfunkything-1   1         1        11m\r\n```\r\n\r\n##### Additional Information\r\n\r\nI don't see any warnings/errors/events in openshift itself, the DC, RC or deploy pod to indicate why its not deciding to scale up the RC.\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/origin/issues/comments/224581815","html_url":"https://github.com/openshift/origin/issues/9216#issuecomment-224581815","issue_url":"https://api.github.com/repos/openshift/origin/issues/9216","id":224581815,"user":{"login":"jstrachan","id":30140,"avatar_url":"https://avatars.githubusercontent.com/u/30140?v=3","gravatar_id":"","url":"https://api.github.com/users/jstrachan","html_url":"https://github.com/jstrachan","followers_url":"https://api.github.com/users/jstrachan/followers","following_url":"https://api.github.com/users/jstrachan/following{/other_user}","gists_url":"https://api.github.com/users/jstrachan/gists{/gist_id}","starred_url":"https://api.github.com/users/jstrachan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstrachan/subscriptions","organizations_url":"https://api.github.com/users/jstrachan/orgs","repos_url":"https://api.github.com/users/jstrachan/repos","events_url":"https://api.github.com/users/jstrachan/events{/privacy}","received_events_url":"https://api.github.com/users/jstrachan/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T13:03:17Z","updated_at":"2016-06-08T13:03:17Z","body":"I suspect there's some issue - but the error message is totally hidden?"}}
{"actor":{"display_login":"jstrachan"}}