apiVersion: apps/v1
kind: Deployment
metadata:
  name: shiny
  labels:
    name: shiny
spec:
  replicas: 1
  selector:
    matchLabels:
      name: shiny
  template:
    metadata:
      labels:
        name: shiny
    spec:
      containers:
      - name : shiny
        image: rocker/shiny-verse 
        imagePullPolicy: "Always"
        ports:
        - containerPort: 3838
          protocol: TCP
        command:
         - "/bin/bash"
         - "-c"
         - "--"
        args :
         - 'ln -s /etc/shiny-server/shiny-server.conf /start; shiny-server start; sleep infinity'
