The healthcare system is important due to the focus on human care and the interference with human lives. In recent years, we have witnessed a rapid rise in e-healthcare technologies such as Electronic Health Records (EHR) and the importance of emergency detection and response. Cloud computing is one of the new approaches in distributed systems that can handle some of the challenges of smart healthcare in terms of security, sharing, integration and management. In this study, an architecture design of a cloud-based pervasive healthcare system for diabetes treatment has been proposed. For this, three different components are defined as follows: (1) The home context manager which gathers necessary information from patients while simultaneously providing feedback, (2) a patient health record manager that is accessible by nurses or physicians at the hospital, and (3) a diabetes management system which is located with the cloud infra-structure for managing and accessing patient's information. The performance of proposed architecture is demonstrated through a user scenario.